Rotate all pages of a PDF by 90, 180, or 270 degrees
Scanned PDF orientation problems stem from the scanning process itself. Scanners detect page edges and auto-rotate based on text orientation detection, but this detection can fail when: the document contains mostly images or tables (no clear text direction), pages have mixed portrait and landscape content (fold-out diagrams in reports, wide tables in appendices), documents were fed at an angle, or the scanner's orientation sensor was configured incorrectly. Additionally, digital cameras used as document scanners (mobile scanning apps) produce images whose orientation depends on how the phone was held, with EXIF rotation metadata that PDF renderers may or may not respect. <strong>Rotation preserves quality</strong> because it's a geometric transformation applied at the PDF content stream level — it simply changes the coordinate system transformation matrix for each page's content. The actual pixel data (for scanned images) and text glyphs (for born-digital PDFs) are not re-encoded or re-compressed — they're just drawn with a different affine transform. This is fundamentally different from 'rotate and re-save' workflows in image editors which decode, rotate, and re-encode (losing quality each cycle). The PivaBox PDF Rotator applies pure coordinate transforms for lossless rotation — all processing is local and private.
The current tool applies the selected rotation angle to ALL pages in the PDF uniformly. This design prioritizes the most common use case — correcting a batch-scanned document where all pages have the same orientation issue. For page-specific rotation (rotating only pages 3, 7, and 12 differently from the rest), you have several workflows using PivaBox' complementary PDF tools: (1) Use the <strong>PDF Splitter</strong> to extract the pages that need different rotation into separate files, rotate each file as needed, then use <strong>PDF Merger</strong> to recombine them. (2) Rotate the entire document by the majority-needed angle, then use the <strong>PDF Reorder</strong> tool with individual page re-rotation if needed. (3) For maximum control, use dedicated PDF editing software (Adobe Acrobat, Preview on macOS, or PDF Arranger on Linux) which offer per-page rotation with a visual thumbnail interface. The PivaBox suite provides complementary tools that can be chained together for complex PDF workflows — the Rotator focuses on the batch-rotate use case with maximum simplicity and zero quality loss.
The pdf-lib library used by the tool preserves the PDF's internal structure during rotation, but the behavior of interactive elements depends on how they're implemented in the source PDF. <strong>Text content</strong> — selectable text remains selectable after rotation; the text coordinates are transformed along with the page content. <strong>Hyperlinks</strong> — internal document links (table of contents, cross-references) and external URL links are preserved with their bounding rectangles rotated along with the content. <strong>Form fields</strong> — AcroForm fields (text inputs, checkboxes, signatures) have their widget annotations rotated, but the field values and JavaScript actions remain intact; however, some PDF viewers may display rotated form fields differently — test with your target viewer. <strong>Annotations</strong> — sticky notes, highlights, and freehand drawings are preserved but their screen positions rotate with the page. <strong>Bookmarks/Outlines</strong> — the document outline hierarchy pointing to specific pages is preserved unchanged; page numbers remain the same. <strong>Page labels</strong> — custom page numbering (e.g., roman numerals for front matter) is preserved. For critical documents with complex interactive elements, verify the rotated output in your target PDF viewer. The PivaBox PDF Rotator processes all documents locally — no server upload, ensuring your form data and document structure remain confidential.