split_pdf
Split a PDF into multiple PDFs by page ranges or fixed-size chunks. Output is a zip archive of the resulting files.
Instructions
Split a PDF into multiple PDFs by page ranges (e.g. "1-3,5-7") or into fixed-size chunks. Returns a .zip archive containing the resulting PDFs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | No | Page ranges to extract, e.g. "1-3,5-7". If omitted and fixed_range is set, splits into fixed-size chunks. | |
| input_file | Yes | Path to the PDF file to split. | |
| fixed_range | No | If set, splits the PDF into chunks of this many pages each. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |