pdf_delete_pages
Remove specific pages from a PDF while preserving AcroForm fields on remaining pages. Optionally flatten forms to bake values into static content.
Instructions
Delete specific pages from a PDF, keeping the rest in their original order. AcroForm fields on the remaining pages are preserved. Set flatten:true to bake field values into static content. Cannot delete every page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | Yes | Page range to DELETE, e.g. '2' or '1-3,5' | |
| outputPath | Yes | Absolute path for the output PDF | |
| flatten | No | Flatten the resulting form: bake field values into static content and remove interactivity. Defaults to false. |