Split a PDF by page ranges
split_pdfSplit a PDF by page ranges. Creates one PDF per range. Ranges use 1-indexed pages: "1-3,5,7-9" gives three files. For one file per page, list every page: "1,2,3". One credit regardless of how many files come out.
Costs 1 credit per call.
Returns a temporary download link (valid 15 minutes). Always include that link in your reply so the user can open or download the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF, base64-encoded. | |
| ranges | Yes | Required. e.g. "1-3,5,7-9" (one output file per comma-separated group). |