§ Combine and divide
Remove PDF Pages API
The complement of extract: name the pages to drop and get the remainder back, with the order otherwise untouched.
- Endpoint
- POST /pdf/remove-pages
- Inputs
- Exactly 1 PDF
- Returns
- application/pdf
- Limits
- 20 MB per file, 3,000 pages.
- Price
- $0.001
§ 01 The request
One POST, and the file comes back.
POST /pdf/remove-pages
curl -sS --fail-with-body \
-o trimmed.pdf \
-H "Authorization: Bearer $OHMYWRAP_KEY" \
-F "file=@scan.pdf" \
-F 'options={"pages":["2-3"]}' \
https://api.ohmywrap.com/pdf/remove-pagesOptions
| Option | Type | Default | What it does |
|---|---|---|---|
| pagesrequired | string[] | — | Required. Pages to drop. |
Worth knowing
A selection covering every page is 422 invalid_page_selection — you cannot end up with a zero-page document.
Your first /pdf/remove-pages call takes one line of curl.
Ten thousand calls cost ten dollars, the pack never expires, and nothing you send is kept.
10,000 calls for $10. No subscription, no expiry.