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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"pages": "<pages>",
"outputPath": "<outputPath>"
},
"name": "pdf_delete_pages"
}
}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. |