rotate_pdf_page
Rotate specific pages in a PDF by specifying page numbers or ranges and rotation direction (clockwise, counterclockwise, or upside down).
Instructions
Rotate selected pages of a PDF using the PDF4me RotatePage API. Provide the PDF path, page spec (e.g. "1", "1,3,5", "2-4"), and rotationType. Optional output directory and file name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Pages to rotate (e.g. "1", "1,3,5", "2-4"). | |
| file_path | Yes | Local path to the PDF file. | |
| output_dir | No | ||
| rotation_type | No | Rotation per API (NoRotation, Clockwise, CounterClockwise, UpsideDown). | Clockwise |
| output_file_name | No |