About this endpoint
What it does
Rotates one or more pages in an uploaded PDF according to the page-to-degrees mapping you provide, and returns the resulting PDF as a binary file.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The PDF file to process. Up to 20 MB. |
| rotations | String | Yes | JSON object mapping 1-based page numbers to rotation degrees, for example {"1":90,"2":180}. |
Response
Returns the rotated PDF as a binary file.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | The response body is the processed PDF file. |



