About this endpoint
What it does
Splits an uploaded PDF into page selections based on the page ranges provided. The response format depends on the delimiter used in ranges:
- Comma-separated values (
,) return a single PDF as a binary response. - Semicolon-separated values (
;) return a JSON response containing afilesarray. Each item includes the generated filename and Base64-encoded PDF content.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
file | File (binary) | Yes | The PDF file to process. Maximum size: 20 MB. |
ranges | String | Yes | Page numbers or ranges to extract. Use commas for a single PDF output, for example 1-3,5,7-9. Use semicolons for separate PDF outputs, for example 1-3;5-6. |
combineIntoOne | String | No | Set to true to request a single PDF containing all selected pages. |
Response
The response format depends on the request.
| Response field | Type | Description |
|---|---|---|
body | String (binary) / Object (JSON) | Response body containing the generated PDF or JSON response data, depending on the request. |
files | Array | List of generated files when the response is JSON. |
files[].name | String | Name of a generated file, for example split_1.pdf. |
files[].base64 | String | Base64-encoded content of a generated file. |



