§ Combine and divide
Split PDF API
Cuts a document into spans of N pages and returns a zip, because one input becomes many documents and an HTTP response has one body. Entries are stored uncompressed: deflating an already-compressed PDF costs CPU for nothing.
- Endpoint
- POST /pdf/split
- Inputs
- Exactly 1 PDF
- Returns
- application/zip
- Limits
- 20 MB per file, 3,000 pages, 100 output documents.
- Price
- $0.001
§ 01 The request
One POST, and the file comes back.
POST /pdf/split
curl -sS --fail-with-body \
-o split.zip \
-H "Authorization: Bearer $OHMYWRAP_KEY" \
-F "file=@report.pdf" \
-F 'options={"span":2}' \
https://api.ohmywrap.com/pdf/splitOptions
| Option | Type | Default | What it does |
|---|---|---|---|
| span | int | 1 | Pages per output document. Must be 1 or more. |
Worth knowing
Each span is a separate parse, so this is the most expensive operation in the API. If you want one PDF back rather than a zip, use /pdf/extract — it is also cheaper.
Your first /pdf/split 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.