Delete PDF pages
pdf_remove_pagesDelete specified pages or ranges from a PDF and save the remaining pages as a new file. Provide input, page list, and output; at least one page must remain.
Instructions
Write a new PDF without the listed pages. At least one page must remain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | Yes | Page numbers or ranges, such as "1, 3-5". | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| output | Yes |