Rotate Pages
rotate_pagesRotate PDF pages clockwise by 90, 180, or 270 degrees. Specify target pages or rotate all pages to fix orientation.
Instructions
Rotate pages clockwise (90/180/270 degrees). All pages when pages is omitted.
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": {
"inputPath": "<inputPath>",
"rotation": "<rotation>"
},
"name": "rotate_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Target pages, "1,3-5" (1-based). All pages when omitted. | |
| rotation | Yes | Clockwise rotation (degrees): 90 / 180 / 270. | |
| inputPath | Yes | Absolute path of the target PDF. | |
| outputPath | No | Destination file path (absolute). When omitted, a base64 string is returned instead. | |
| returnBase64 | No | When true, include a base64 string in the result in addition to saving. | |
| allowBreakingSignatures | No | When the target is digitally signed (detected via /ByteRange), the default is an error. Set true to proceed, accepting that the signatures become invalid. |