extract_pages
Extract specific pages from a PDF into separate PDF files. Specify file path, page numbers, and output directory.
Instructions
Extract specific pages from a PDF into separate PDF files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | Yes | Array of page numbers to extract (1-based) | |
| outputDir | Yes | Directory where extracted pages will be saved | |
| prefix | No | Optional filename prefix for extracted pages (default: "page") |