Split a PDF
dochorizon_document_splitSPENDS CREDITS: split a PDF into several PDFs by page ranges (one output file per range, for example ['1-3','4-6']). Output files are stored in Doxis AI.dp storage and returned as file ids you can pass to any other tool as file_id. Uses your own Doxis AI.dp (Klippa) credits: billed per request or per page depending on the service (extra components in a configuration can add cost), at your project's price (Billing → Pricing in the platform); a new account starts with EUR 25 of free credit. Give the document as exactly one of url (public https), data_base64 (small files) or file_id (a stored file). POST /document_toolkit/v1/split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of the document. Klippa downloads it (must complete within 30 seconds). | |
| file_id | No | A Doxis AI.dp storage file id (from dochorizon_upload_file or a toolkit result). | |
| filename | No | A name for the file (helps content-type detection). | |
| password | No | Password of a protected PDF. Only used for this request. | |
| data_base64 | No | The document as base64 (at most about 1.5 MB of file). Prefer url or file_id for anything bigger. | |
| page_ranges | Yes | One entry per output file, e.g. ['1-3', '4-6', '7']. | |
| content_type | No | MIME type, if it cannot be detected. |