Extract PDF pages
pdf_extract_pagesExtract selected pages from a PDF into a new file using ranges like "1-3, 7, 10-"; leave all other pages out.
Instructions
Make one new PDF from selected pages of a PDF, e.g. "1-3, 7, 10-" (order as written, each page once). The rest of the file is left out. To reorder, duplicate or delete pages use pdf_organize. Web version: https://s3eidat.github.io/pdf-split/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| pages | Yes | Pages to keep: "1-3, 7, 10-" ("5-" = to the end; also "odd", "even", "last"). | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. |