Extract pages into a new PDF
pdf_pagesExtract selected pages from a PDF and combine them into one new PDF. Specify pages or ranges in the desired output order; source file remains unchanged.
Instructions
Call this tool to pull selected pages into one new PDF, in the order written: "2,4-6" gives four pages. Asking for a page twice copies it twice. The input is never modified. Free tier: files up to 30 pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The source PDF | |
| pages | Yes | 1-based pages and ranges to keep, in output order, e.g. "2,4-6" or "5,1,1" | |
| out_path | Yes | Where to write the extracted PDF | |
| overwrite | No | Replace out_path if it exists. Default false |