deskew_pdf
Automatically detect and correct tilted scanned PDF pages, outputting rasterized pages for clean, readable documents.
Instructions
Automatically detect and correct tilted scanned PDF pages. Output pages are rasterized.
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>"
},
"name": "deskew_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Output DPI from 72 to 300 (default 144) | |
| file | Yes | Absolute path to the PDF file | |
| max_angle | No | Maximum skew angle to search, from 1 to 20 degrees (default 12) | |
| output_name | No | Output file path (defaults to same dir with suffix) |