How Deskew scanned pages works
PDF Deskew detects the angle at which each scanned page was fed into the scanner slightly crooked and rotates it back to straight. The detection works by analysing the distribution of dark pixel runs across the rasterised page at multiple candidate angles; the angle that produces the most consistent horizontal alignment is selected and applied. The entire analysis and rotation runs in your browser, and the PDF never leaves your device.
Deskewing is a heuristic process. It works well on pages with clear horizontal text or line structures, which provide a strong signal for angle detection. Pages with mostly vertical content, large images without text, or very light scans may not yield a reliable angle estimate. The tool reports the detected angle per page so you can verify its judgement. If the automatic result is wrong for a specific page, the manual rotation tool can be used to correct that page independently.