Rotate pages of a PDF
rotate_pdfRotate pages of a PDF. Rotates all pages, or only the ones in pages, by 90, 180 or 270 degrees (added to the rotation each page already has).
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. | |
| angle | No | Clockwise rotation in degrees: 0, 90, 180 or 270. Default 90. | |
| pages | No | Pages to act on, 1-indexed, e.g. "1-3,5,7-9". Default: all pages. |