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.
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>"
},
"name": "rotate_pdf"
}
}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 |