rotate_pdf
Rotate all pages of a PDF in one operation. Specify the rotation direction (clockwise, counterclockwise, upside down) and save the rotated PDF to your desired location.
Instructions
Rotate all pages of a PDF the same way using the PDF4me Rotate API. Provide the local PDF path and rotationType (NoRotation, Clockwise, CounterClockwise, UpsideDown). Optional output directory and file name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the PDF file. | |
| output_dir | No | ||
| rotation_type | No | How to rotate all pages (NoRotation, Clockwise, CounterClockwise, UpsideDown). | Clockwise |
| output_file_name | No |