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.
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 |