# Auto‑Straighten Your Scanned PDFs with AI

*Upload a PDF. Our AI analyzes each page, finds the optimal rotation angle, and returns a perfectly aligned document.*

Upload scanned PDFs and let AI instantly detect and correct page rotation using OpenCV. Preserve OCR layers, get a clean PDF, and query processing results via RAG.

Page: <https://products.documentize.ai/deskew>

## How Deskew Works

### 1. Upload Your Scanned PDF
Select a PDF file from your computer or cloud storage.

### 2. AI Extracts Page Images & Analyzes Skew
OpenCV converts each page to a bitmap, computes the dominant text line orientation, and determines the exact rotation angle.

### 3. RAG Index for Semantic Queries (Optional)
Metadata such as page numbers, detected angles, and confidence scores are vectorized, enabling instant answers like “Which pages were rotated more than 5°?”.

### 4. Apply Corrections & Re‑assemble PDF
Pages are rotated to 0°, re‑encoded, and the original OCR/text layer is preserved. Download the corrected PDF.

## What Can Deskew Do?

From single‑page receipts to large multi‑chapter scans, Deskew handles any document size and returns a clean PDF.

## FAQ

### Which document formats are accepted?
Standard PDF files (including encrypted PDFs with user password). Images (JPEG, PNG) can be uploaded as single‑page PDFs.

### How precise is the skew correction?
OpenCV computes rotation with sub‑degree precision (±0.1°). Most scans are corrected to within 0.2° of perfect alignment.

### Does Deskew keep existing searchable text?
Yes. The tool rotates the visual layer while preserving the original text layer, so the output remains searchable.

### Are my documents stored?
Files are processed in memory and deleted immediately after the session. No data is retained or used to train models.

### Can I process large PDFs?
Free tier supports PDFs up to 100 MB (≈500 pages). Higher tiers allow up to 1 GB and batch uploads.

Keywords: ai pdf deskew, skew correction pdf, openCV deskew, automatic pdf straighten, scanned document correction, pdf rotation removal, ai document cleanup, pdf image analysis, deskew api, bulk pdf deskew, searchable pdf preservation, ai image processing pdf.
