When Your PDF Is Sideways
Few things are more frustrating than opening a PDF and finding half the pages turned sideways or upside down. Scanned documents are the worst offenders -- feed a stack of mixed-orientation pages through a document scanner, and the output is a disorienting mix of portrait and landscape pages, some rotated 90 degrees, others flipped 180.
But scanned documents are not the only source of rotation problems. Presentations exported to PDF sometimes render in landscape when you expected portrait. Mobile scans from phone cameras can embed incorrect rotation metadata. Merged PDFs combine pages from different sources with inconsistent orientations. Even email attachments arrive occasionally with pages turned the wrong way, with no explanation from the sender.
Rotating PDF pages is a simple operation: pick the pages, choose the rotation angle, save. Yet the details matter. Do you want to rotate the view (temporary) or the page content (permanent)? Should every page rotate, or just specific ones? What happens to annotations, form fields, and bookmarks when you rotate?
This guide covers all of it: rotation angles, selective vs. bulk rotation, permanent vs. view rotation, handling scanned documents, and every method from online tools to command-line automation.

Understanding PDF Rotation
PDF rotation is not as straightforward as it might seem. A PDF page has a concept called the "Rotate" key in its page dictionary, which tells the viewer how to display the page content. The content itself does not change -- the viewer just rotates its display of that content.
Rotation Angles
| Rotation | Effect | Common Use Case |
|---|---|---|
| 90 degrees clockwise | Portrait becomes landscape (left side becomes top) | Fixing sideways scans, switching to landscape |
| 180 degrees | Page flips upside down | Fixing inverted scans or fax pages |
| 270 degrees clockwise | Portrait becomes landscape (right side becomes top) | Fixing sideways scans rotated the wrong way |
| 0 degrees | Reset to original orientation | Undoing previous rotations |
These four angles cover every possible orientation correction. There is no need for arbitrary angle rotation for document pages -- that is a feature for images, not PDFs. If you need to straighten a slightly tilted scan (like a 2-degree skew), that requires a different operation called deskewing, which is typically part of OCR preprocessing. See our guide on how to OCR scanned documents for more on preprocessing scanned pages.
View Rotation vs. Permanent Rotation
There is an important distinction between two types of rotation:
View rotation is temporary. When you press Ctrl+Shift+Plus in a PDF reader to rotate the view, the page displays rotated on your screen, but the file itself is unchanged. Close and reopen the document, and it reverts to its original orientation. This is useful for quick reading of a sideways page but does not solve the problem for other recipients.
Permanent rotation modifies the PDF file itself. The page's rotation attribute is changed (or the content stream is transformed), so the page displays in the new orientation for everyone who opens it, in every PDF reader, on every device. This is what you need when fixing a document for distribution or archiving.
Pro Tip: If you only need to rotate the view temporarily to read a sideways page, use your PDF reader's view rotation instead of modifying the file. In most readers, Ctrl+Shift+Plus rotates clockwise and Ctrl+Shift+Minus rotates counter-clockwise. This avoids accidental permanent changes to files you do not own.
How to Rotate PDF Pages: Step-by-Step
Method 1: Using the Online Rotate Tool
The rotate PDF tool on ConvertIntoMP4 provides a visual interface for precise page rotation.
- Upload your PDF. Drag and drop your file onto the tool. It processes the document and displays page thumbnails.
- Select pages to rotate. Click individual page thumbnails to select them. Use Shift-click for ranges or Ctrl/Cmd-click for individual selections. You can also click "Select All" to rotate the entire document.
- Choose the rotation angle. Click the rotation button to cycle through 90, 180, and 270 degrees clockwise. Each click rotates the selected pages by an additional 90 degrees. The thumbnails update in real time so you can see the result.
- Apply and download. Click the Apply button to save the rotation. Download the rotated PDF.
The visual thumbnail preview is particularly helpful for scanned documents where you need to identify which specific pages are rotated and by how much. Rather than guessing page numbers, you can see the actual content and rotate only what needs fixing.
Method 2: Using Preview on macOS
macOS Preview has built-in rotation:
- Open the PDF in Preview
- Go to View > Thumbnails to show the sidebar
- Select the page(s) to rotate in the sidebar
- Go to Tools > Rotate Left or Rotate Right (or use the keyboard shortcuts Cmd+L and Cmd+R)
- Save the file (Cmd+S)
Preview saves the rotation permanently when you save the file. Note that Preview sometimes recompresses images when saving, which can affect file size and quality for image-heavy PDFs.
Method 3: Using Adobe Acrobat Reader (Free)
Adobe Acrobat Reader (the free version) supports view rotation but not permanent rotation. You need the paid Acrobat Pro to save rotated pages. If you have Acrobat Pro:
- Open the PDF in Acrobat Pro
- Go to Page Thumbnails panel (View > Show/Hide > Navigation Panes > Page Thumbnails)
- Select the pages to rotate
- Right-click and choose Rotate Pages
- Select the rotation angle and page range
- Click OK, then save
Method 4: Command-Line Rotation
For batch processing and automation, command-line tools are the most efficient approach.
Using pdftk:
# Rotate all pages 90 degrees clockwise
pdftk input.pdf cat 1-endeast output rotated.pdf
# Rotate specific pages (pages 3-5 by 90 degrees, others unchanged)
pdftk input.pdf cat 1-2 3-5east 6-end output rotated.pdf
# Rotate page 7 by 180 degrees
pdftk input.pdf cat 1-6 7south 8-end output rotated.pdf
# Rotate page 2 by 270 degrees (90 counter-clockwise)
pdftk input.pdf cat 1 2west 3-end output rotated.pdf
In pdftk, the directional suffixes are:
east= 90 degrees clockwisesouth= 180 degreeswest= 270 degrees clockwise (90 degrees counter-clockwise)north= 0 degrees (reset rotation)
Using qpdf:
# Rotate all pages 90 degrees clockwise
qpdf input.pdf --rotate=+90 -- output.pdf
# Rotate specific pages
qpdf input.pdf --rotate=+90:3-5 -- output.pdf
# Rotate page 7 by 180 degrees
qpdf input.pdf --rotate=+180:7 -- output.pdf
Using Python (PyMuPDF):
import fitz
doc = fitz.open("input.pdf")
# Rotate page 3 (0-indexed: page index 2) by 90 degrees
doc[2].set_rotation(90)
# Rotate pages 5-10 by 180 degrees
for page_num in range(4, 10):
doc[page_num].set_rotation(180)
doc.save("rotated.pdf")

Fixing Common Orientation Problems
Mixed Orientation from Scanning
The most common rotation issue comes from batch scanning. When you feed a stack of pages through an automatic document feeder, some pages may be fed sideways, upside down, or in alternating orientations (especially if the physical pages were not uniformly oriented).
Diagnosis approach:
- Open the PDF and scroll through all pages
- Note which pages need rotation and by how much
- Group them by rotation needed: "pages 3,7,12 need 90 CW; pages 5,9 need 180"
- Apply the rotations in one operation
For large scanned documents (50+ pages), manually checking every page is tedious. Some OCR tools include automatic orientation detection that can identify and correct rotated pages as part of the OCR process.
Landscape Pages in Portrait Documents
Reports and presentations sometimes include landscape-oriented pages (charts, tables, diagrams) within an otherwise portrait document. These pages are correct -- they are supposed to be landscape. The question is whether to rotate them to portrait for consistency or leave them as-is.
Leave as landscape when the content requires the wider format to be readable. Rotating a wide table or chart to portrait makes it too small to read.
Rotate to portrait when the page is erroneously landscape (e.g., a text page that was scanned sideways and does not benefit from the landscape format).
| Scenario | Recommended Action |
|---|---|
| Wide data table or chart | Keep landscape |
| Standard text page scanned sideways | Rotate to portrait |
| Photograph in landscape orientation | Keep landscape |
| Form page scanned upside down | Rotate 180 degrees |
| Mixed content (some text, some charts) | Keep original orientation |
| All pages going to a binder | Rotate all to portrait for consistency |
Fax and Email Scans
Documents received by fax or scanned from email attachments are notorious for incorrect orientation. Fax machines sometimes invert pages (180-degree rotation), and the sending software may not include rotation metadata. If you regularly receive faxed or scanned documents that need rotation, consider setting up an automated workflow:
#!/bin/bash
# Auto-rotate all PDFs in a watched folder
for file in /path/to/incoming/*.pdf; do
pdftk "$file" cat 1-endsouth output "/path/to/processed/$(basename $file)"
done
This script rotates all pages by 180 degrees, which fixes the most common fax orientation issue. For more sophisticated handling, tools with automatic orientation detection can analyze each page individually.
Pro Tip: If you are scanning documents yourself and consistently getting sideways pages, check your scanner's auto-orientation setting. Most modern scanners have an "auto-detect orientation" feature that uses text recognition to determine the correct rotation. Enabling this setting prevents the problem at the source rather than requiring post-scan fixes.
What Happens to Page Elements When You Rotate
Rotation affects everything on the page, but some elements need special attention:
Text and Images
All visual content rotates with the page. Text that was horizontal becomes vertical (or vice versa). Images rotate accordingly. This is the expected behavior and is generally seamless.
Annotations and Comments
Annotations rotate with the page content in most tools. A comment box that was in the top-right corner of a portrait page will end up in the correct corresponding position after rotation. However, some older PDF tools handle annotation rotation inconsistently, so verify your annotations after rotating if they are critical.
Form Fields
Interactive form fields rotate with the page, but the text entry direction may not update correctly in all PDF readers. A text field on a rotated page might still accept input in the pre-rotation direction in some viewers. If you are working with fillable forms, test the rotated version before distributing it.
Bookmarks and Links
Bookmarks and internal links are not affected by rotation. They still point to the same page -- the page just displays differently. External links are completely unaffected.

Saving the Rotated State Permanently
There are two technical approaches to making rotation permanent:
Setting the Rotation Attribute
This is the standard method used by most tools. The PDF page's /Rotate key is set to 90, 180, or 270. The page content stream is unchanged -- only the display instruction changes. This is fast, non-destructive, and produces the smallest possible output file.
However, some applications ignore the /Rotate key. Certain image viewers, thumbnail generators, and legacy software may display the page in its original (un-rotated) orientation despite the rotation attribute being set.
Transforming the Content Stream
This method actually modifies the page content, applying a rotation transform to the content stream itself. The visual result is the same, but the page content is physically rewritten in the new orientation. This is more robust because no software can ignore it -- the content itself is in the correct orientation.
The downside is that it requires rewriting the page content, which can alter the file in subtle ways (recompressing images, changing object ordering). For most use cases, the rotation attribute method is sufficient and preferable.
The PDF converter tool on ConvertIntoMP4 uses the rotation attribute method by default, which preserves the original content stream while ensuring correct display in all modern PDF readers.
Rotation in Batch Workflows
For organizations processing large volumes of scanned documents, manual rotation is not scalable. Here are automated approaches:
Pre-OCR rotation: Run automatic orientation detection before OCR processing. Tools like Tesseract (with the --psm flag) and commercial OCR engines can detect and correct page orientation as part of text recognition.
Post-scan quality control: Set up a review workflow where scanned PDFs are displayed for a quick visual check, with one-click rotation controls for each page. This catches orientation errors before documents enter the filing system.
API integration: ConvertIntoMP4's API supports page rotation as part of PDF processing operations. Include rotation parameters in your API calls to correct orientation automatically within document processing pipelines.
For more on managing PDF pages, see our complete guide on how to merge and split PDFs, which covers page manipulation operations that work alongside rotation for comprehensive document management.
Wrapping Up
Rotating PDF pages is a simple fix for a surprisingly common problem. Whether you are correcting a batch of scanned documents, fixing a single sideways page in a report, or standardizing orientation before archiving, the operation takes seconds with the right tool.
For quick visual fixes, the rotate PDF tool lets you see thumbnails and rotate pages with a click. For automation and batch processing, command-line tools like pdftk and qpdf handle any volume. The key is choosing permanent rotation over view rotation when the fix needs to stick, and always keeping a backup of the original if you are not certain about the correct orientation.



