Split PDF
split_pdfSplit a PDF into several files of N pages each, saving parts to a folder while leaving the original unchanged and never overwriting existing files.
Instructions
Split a PDF into several files of N pages each (1 = one file per page), written into a folder. Returns the list of files. The input is not modified and existing files are never overwritten. To keep a custom page range as one file use extract_pdf_pages instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the PDF. | |
| password | No | Password for a PDF that asks for one when opened. Used only on this machine. | |
| output_dir | No | Folder for the parts. Defaults to a new folder beside the input named <file>-split. | |
| pages_per_file | No | Pages in each output file. Default 1. |