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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"page": "<page>"
},
"name": "rotate_pdf_page"
}
}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 |