rotate_pdf
Rotate PDF pages clockwise by 90, 180, or 270 degrees, targeting specific pages or the entire document.
Instructions
Rotate pages in a PDF by 90, 180, or 270 degrees clockwise. Target specific pages with "pages" (e.g. "1,3,5" or "1-5"), or rotate all pages by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Which pages to rotate: "all" (default), or a list like "1,3,5" or "1-5". | all |
| rotation | Yes | Clockwise rotation in degrees. Must be 90, 180, or 270. | |
| input_file | Yes | Path to the PDF file to rotate. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |