split_pdf
Split a PDF into separate files by page range. Supports single pages, ranges like '1-3', or 'all'. Returns base64-encoded PDFs.
Instructions
Split a PDF file into multiple separate PDF files based on page ranges. Returns a JSON with base64-encoded PDFs for each selected page. Supports single pages (e.g., '1'), page ranges (e.g., '1-3'), and all pages (e.g., 'all').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the PDF file to split | |
| page_range | Yes | Page range to split - 'all', single page (e.g., '1'), or range (e.g., '1-3', '2-5') |