Split PDF
split_pdfSplit a PDF into multiple files by specifying page ranges. Each range becomes a separate PDF, enabling selective extraction and reorganization of pages.
Instructions
Split a PDF into multiple files by page range. Each element of ranges becomes one file, named "1.pdf", "2.pdf", and so on. Pages are copied into a new document, so document-level information (tagged structure, XMP, attachments, AcroForm, bookmarks, etc.) is not carried over. Anything lost is reported in warnings; follow up on the output with attach_file / ensure_tagged / add_bookmarks / set_metadata as needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Output filename prefix. Default "<input name>-part". | |
| ranges | Yes | Array of page ranges. Each element is "1-3" / "5" / "7-" / "-2" (1-based). Example: ["1-3", "4-"]. | |
| inputPath | Yes | Absolute path of the PDF to split. | |
| outputDir | Yes | Output directory (absolute path). | |
| allowBreakingSignatures | No | When the target is digitally signed (detected via /ByteRange), the default is an error. Set true to proceed, accepting that the signatures become invalid. |