Fix clearly sideways scanned PDF pages locally with best-effort content orientation detection, optional crop, and before-and-after preview.
Best-effort local orientation detection for clearly sideways scanned page content.
Uncertain pages are left unchanged rather than guessed.
Optional crop trims borders after 90-degree rotation when page edges are clear.
Output is rebuilt as page images; run OCR PDF afterward when you need searchable text.