split_pdf
Extract specified page ranges from a PDF file into a new PDF using memory-efficient pointer copying.
Instructions
Creates a new PDF containing only the specified page ranges from the source PDF. This operation is extremely memory efficient as it copies C-level pointers rather than re-encoding the content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Absolute path to the source PDF file | |
| page_ranges | Yes | Comma-separated list of page ranges (e.g., '1-5, 8, 11-13') | |
| output_filename | Yes | Absolute path where the output PDF should be saved |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |