split_pdf
Cut a PDF into multiple PDFs by page range, returning each part's page count, size, and base64 content. Use it to isolate chapters, appendices, or create page-limited uploads.
Instructions
Split a PDF into multiple PDF documents by page range. Each part comes back with its page count, size and base64 content (parts up to 5 MB), ready to be fed into other doc2md tools or written to a file. Use it to break a large report into chapters, isolate an appendix, or prepare page-limited uploads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of the document to fetch and convert. Leave empty when passing file_base64 instead. | |
| ranges | No | Page ranges to cut, 1-based and inclusive, e.g. '1-3,5,8-10'. Each range becomes one output PDF. Max 20 parts per call. | |
| filename | No | Original filename with extension (e.g. 'report.docx'). Used as a format hint when content type cannot be detected automatically. | |
| password | No | Password for encrypted PDFs. Empty for normal files. | |
| file_base64 | No | Base64-encoded file content (for documents not reachable by URL). Decoded size limit: 30 MB. Leave empty when passing url instead. |