§ Combine and divide
Extract PDF Pages API
Name the pages you want and get exactly those back as one document. One parse, one document out, which makes it the cheap alternative to splitting when you do not actually need separate files.
- Endpoint
- POST /pdf/extract
- 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/extract
curl -sS --fail-with-body \
-o pages.pdf \
-H "Authorization: Bearer $OHMYWRAP_KEY" \
-F "file=@handbook.pdf" \
-F 'options={"pages":["2-4"]}' \
https://api.ohmywrap.com/pdf/extractOptions
| Option | Type | Default | What it does |
|---|---|---|---|
| pagesrequired | string[] | — | Required. Page selection; must match at least one real page. |
Worth knowing
Omitting pages is 422 invalid_page_selection. Exclusion syntax like ["!2"] is not supported.
Your first /pdf/extract 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.