Rotate pages
rotate_pdfRotates PDF pages clockwise by multiples of 90 degrees, including selected pages, and writes the output to a new file while keeping the original unchanged.
Instructions
Turns pages clockwise by a multiple of 90 degrees (negative turns counter-clockwise), every page unless pages is given. Named with -rotated. Writes the result as a new file next to the input (or to output_path) and never replaces an existing file; the input is left unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF file, or one starting with ~/. | |
| angle | Yes | Degrees clockwise: 90, 180, 270, or -90 for counter-clockwise | |
| pages | No | Pages, such as "2", "1-3, 5" or "4-end". Commas separate parts. Every page when left out. | |
| output_path | No | Optional absolute path for the new PDF, ending in .pdf. It must not exist yet. By default the result goes next to the input. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Pages in the new PDF | |
| output_path | Yes | Where the new PDF was written |