Split a PDF
split_pdfSplit a PDF into separate files by comma-separated page ranges, with one output per range while leaving the original untouched and avoiding overwrites.
Instructions
Splits a PDF into one new file per comma-separated range, named -part1, -part2 and so on. "1-2, 3-end" gives two files, and one call writes at most 1,000 (or one per page for longer PDFs). Never replaces an existing file; the input is left unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF file, or one starting with ~/. | |
| ranges | Yes | Ranges such as "1-2, 3, 4-end": one output file per comma-separated part | |
| output_folder | No | Optional absolute path of an existing folder for the files. By default they go next to the input. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Pages in each new PDF | |
| output_paths | Yes | The new PDFs, one per range |