Rotate PDF
rotate_pdfRotate all or selected PDF pages clockwise by 90, 180 or 270 degrees and save a new file, keeping text and images at full quality while the original stays unchanged.
Instructions
Save a new PDF with all or some pages turned clockwise by 90, 180 or 270 degrees. Only the page rotation flag changes, so text and images keep full quality. Returns the saved path; the input is not changed.
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": "<file>",
"angle": "<angle>"
},
"name": "rotate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| angle | Yes | Clockwise degrees. | |
| pages | No | Pages to rotate, like "1-3, 8". Defaults to all pages. | |
| output | No | Where to save the result. Defaults to a new file next to the input. | |
| password | No | The PDF's current password, if it has one. |