About this endpoint
What it does
Reorders, rotates, removes, or inserts pages in a PDF you upload, then returns the modified PDF as a binary file. You provide the source PDF plus a pageSpecs JSON array that describes the new page arrangement.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The PDF file to organize. Binary upload. Up to 20 MB. |
| pageSpecs | String | Yes | JSON array that defines the output pages, for example [{"type":"source","index":0},{"type":"blank"},{"type":"source","index":2,"rotation":90}]. |
Response
Returns a binary file containing the organized PDF. The response schema is a single binary payload, not a JSON object.



