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.
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) |