Rotating a PDF page is a metadata operation, not a pixel operation — pdf-lib updates each page's rotation flag and every PDF reader honors it. That means rotation is truly lossless: the underlying content, fonts, and images stay byte-identical. This tool lets you rotate all pages together or select specific pages for per-page rotation, useful when a scanned batch has a few sideways pages mixed in.
Lossless rotation
PDF's page rotation is a header flag, not a re-render. When you rotate a page, pdf-lib flips the flag and every viewer draws the page rotated. That means: file size unchanged, no quality loss, no re-compression. Rotate a hundred times and re-open — the content is still perfect.
Per-page vs. bulk rotation
Two modes: Bulk rotates every page in the PDF by the same angle. Per-page lets you rotate specific pages independently — useful when your scanner produced a mix of correct and sideways pages. Thumbnails show current rotation state so you can verify.
Auto-detect skewed pages
Toggle Auto-detect orientation (using text baseline detection via pdf.js) to have the tool guess which pages need rotation. Detection is 90%+ accurate for text-heavy pages and less reliable for image-heavy pages — always verify in the preview before downloading.