PDF splitter
pdf_splitSplit a PDF into parts by page ranges such as '1-2,5-' or every N pages, returned as one PDF or a zip of parts. Cost in credits: ceil(pages written / 20), minimum 1. File input (file): base64 string, data: URI or {"url": "https://..."}. Output: a file (application/pdf | application/zip) returned inline, at most 1 MiB. part_01.pdf when there is one part, otherwise split.zip holding part_01.pdf ...; meta: {parts, page_count}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF: base64 string (or data: URI) or {"url": "https://..."}. Up to 10 MB. | |
| ranges | No | Comma-separated page ranges, one part each: '1-2,5-' ('5-' runs to the last page). | |
| every_n | No | Alternative to ranges: parts of this many pages. |