← All microservices
PDF splitter
PDF
Extract pages into a new PDF, remove pages, or split a PDF into one file per page.
What it does
- Extract pages in any order
- Remove the pages you don't want
- One file per page, zipped
- Page lists such as 1-3,5,8-
Good for
- Pulling one page from a statement
- Removing blank or cover pages
- Splitting scanned batches
Pages are copied rather than redrawn, so quality and selectable text are kept.
Example
POST https://bloodweb.net/api/v1/pdf-split
curl -H "Authorization: Bearer YOUR_KEY" -F file=@report.pdf -F mode=extract -F pages=2-4 https://bloodweb.net/api/v1/pdf-split -o pages.pdf
Options
| Name | Description |
|---|---|
filefile |
The PDF, up to 50MB. |
mode
|
extract: a PDF of the chosen pages, in the order given. remove: the PDF without the chosen pages. each: a zip with one PDF per chosen page. One of: extract, remove, each Default: extract |
pages
|
Pages such as 1-3,5 or 8- (to the end). Required for extract and remove; each defaults to all pages. |
Returns
A PDF (extract, remove) or a zip of single-page PDFs (each).
Limits
500 pages per call.