Guide
Fixing sideways and upside-down PDF pages
By Logappradeep · ServiceNow developer
A page scanned upside down, a landscape spreadsheet printed onto a portrait document, or a phone photo saved as a PDF in the wrong orientation all make a file painful to read. Rotating fixes the orientation permanently, so it displays correctly in every viewer and prints the right way up.
Rotating in a viewer versus rotating the file
Most PDF readers have a rotate button, but it usually changes only your current view. Close the file and the page is sideways again for you and for everyone you send it to. This tool writes the change into the document itself so the fix travels with the file.
How PDF rotation is stored
Each page in a PDF has an optional rotation value, which must be a multiple of 90 degrees. Viewers read this value and turn the page before drawing it. When you rotate a page here, the tool adds your chosen angle to the page's existing rotation and saves the document. The drawing instructions, fonts and images inside the page are not touched, so there is no quality loss, text stays selectable and the file size stays almost the same.
Because only a small setting changes, rotation is fast even for long documents. It runs entirely in your browser with pdf-lib, so the file is never sent over the network.
All pages or a selection
- All pages: with no page selected, the rotate buttons turn the whole document, the quick fix when an entire scan came out sideways.
- Selected pages: click the thumbnails of the pages that need turning, such as the two landscape tables in an otherwise portrait report.
- Direction: rotate clockwise or counterclockwise by 90 degrees, or 180 degrees for upside-down pages.
Practical tips
Check the thumbnail preview after choosing an angle; it reflects how the page will look in the saved file. If a page appears correct in one viewer but rotated in another, the file may contain both a rotation value and content that was already drawn rotated by the program that created it. Rotating once more by the needed amount resolves it for all viewers, because the stored value is what every compliant reader follows.
Rotating a page does not change its text direction for copy and paste or reflow it. A landscape table rotated to portrait will appear smaller on screen because the same content now has to fit the narrower width when you zoom to fit the page.
If you also need to reorder or delete pages, the Organize tool combines rotation with drag-and-drop in one step. Note that any certificate-based digital signature in the file becomes invalid after editing, so rotate before signing.