delete_pdf_pages
Delete specified pages from a PDF. Provide the file path and page numbers (e.g., '2', '1,3,5', or '2-4') to remove them, with optional custom output settings.
Instructions
Remove pages from a PDF using the PDF4me DeletePages API. Provide the local PDF path and pageNumbers (e.g. '2', '1,3,5', or '2-4'). Optionally set output directory and output file name.
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": {
"file_path": "<file_path>",
"page_numbers": "<page_numbers>"
},
"name": "delete_pdf_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the PDF file. | |
| output_dir | No | ||
| page_numbers | Yes | Pages to delete, as accepted by the API (e.g. '2', '1,3,5', '2-4'). | |
| output_file_name | No |