How to rotate a PDF permanently (not just in the viewer)
You rotate the page, it looks right, you save, you send it — and the person on the other end tells you it is still sideways. Nothing went wrong with your save. You rotated the view, and the view belonged to your program, not to the file.
Fixing the orientation for good means changing the document itself. Rotate PDF is one of the five Pro tools in the SQLViz toolkit, and it writes the rotation into the file inside your browser, so the result looks the same to everybody who opens it, including printers and automated document systems.
Why the viewer rotates and the file does not
Every PDF viewer has a rotate control, and in most programs it changes how the page is displayed right now. Close the file, reopen it, and the page is back to the way it was. The bytes on disk were never touched, so anything downstream — an email attachment, a scanning portal, a print job, a colleague’s Adobe Reader — still sees the original orientation. View rotation is a convenience for reading; it is not a document edit.
There is a second confusion underneath it. A PDF page can carry its own rotation value, and a viewer can add view rotation on top of that. If the file says “90°” and your viewer adds another 90°, the page looks upside down and you conclude the file is broken. It is not; the two rotations are simply stacking.
Rotate PDF works the same way the format does: it adds the angle you choose to the rotation the page already carries. A page marked 90° that you rotate by 90° again ends up at 180°. So if a page comes out wrong after one pass, do not add another turn — go back to the original file and try the opposite direction. Rotating in a loop is how a page ends up at 270° when all it needed was 90°.
How to tell which way a page needs to go
Ignore the shape of the page. Landscapes and portraits are both legitimate. Read the content instead:
- A line of text should run left to right, and the top of the letters should be up. If you have to tilt your head to the left to read it, the page needs 90° clockwise.
- The footer is the bottom. Page numbers, logos and signature blocks belong at the bottom of a correctly oriented page.
- Tables and letterheads are reliable clues. A letterhead belongs at the top.
Then choose the angle: 90° clockwise, 180° for a page that is upside down (the classic back-to-front sheet through a document feeder), and 270°, which is 90° counter-clockwise.
The whole document, or just one page?
Rotate PDF turns every page by the angle you choose, which is exactly right when a stack of scans went through the feeder the wrong way up. It is the wrong tool when one page out of forty is sideways.
For a single page there is a clean workaround using two free tools:
- Split out the page. Use the free split tool with a range like
7to get that page as its own file. - Rotate the single page. Run Rotate PDF on the one-page file. Now the whole file problem becomes the single page problem.
- Put the document back together. Use the free merge tool and put the pages in order, with the rotated page in position 7 where it belongs.
Three steps instead of one, but each is trivial and you end up with exactly the file you wanted. Rotating every page of the original and then rotating all but one back would take longer and end up with two rounds of damage to fix.
Step by step
- Open the tools page at sqlviz.app/pdf-tools and pick Rotate PDF. Your file stays in the tab; you can watch the network panel and see that nothing carries the document anywhere.
- Add the PDF. Drag it in or browse. Large scan files are fine — the limit is your machine’s memory, not a server quota.
- Choose 90°, 180° or 270° and run it. The rotated document is built in memory.
- Download and check. Open the result in a viewer you did not use for the original, at 100% zoom, and read the bottom of the first page. That is where you see whether the fix landed.
Skew is a different problem
Rotation moves in 90° steps. It cannot straighten a page that was fed into the scanner at a three-degree tilt; you will rotate it correctly and the text will still slope. That is skew, and it needs a raster tool: convert the page to an image with the PDF to JPG tool, straighten it in an image editor, then rebuild the document with Images to PDF. Worth doing for a single poorly scanned page, tedious for a whole document — and sometimes the honest answer is to re-scan the page with a straight edge on the glass.
After rotating, check three things
Print preview at actual size. A rotation changes which page edge is which; content close to the margin can end up outside the printable area of a printer that cannot print edge to edge. If something important sits near the edge, preview it before sending the file to print.
The physical page size. A page that was A4 portrait and is now rotated is still described as an A4 page, so it will print on A4 — just in landscape. Some viewers display the dimensions differently and that can look alarming; it is not a change in the paper size.
The file size. Rotation normally leaves the size almost untouched, because the page content itself is re-described rather than rebuilt. If a file suddenly doubles after editing, something else happened — check for an embedded thumbnail or preview being rewritten — and compressing it will bring it back down.
About the trial and the price
Rotate PDF is a Pro tool, with 3 free trial uses per IP address so you can test it on a real sideways scan rather than a demo file. After the trial Pro costs €5.90/month with PayPal or card, cancellable whenever you like, and it unlocks all eight tools — rotate, remove pages, page numbers, images to PDF and PDF to JPG on top of the three that are free anyway.
Nothing is uploaded at any point, which is the reason the whole toolkit exists: a sideways passport scan, a signed contract or a client’s medical report can be fixed without a copy of it sitting on somebody else’s server. The trade is that nothing is stored for you either. Download the result before you close the tab, and keep the original until you have checked it.
Make the rotation part of the file
Rotate the pages by 90°, 180° or 270° and download a document that opens the right way for everyone. Pro tool: 3 free trial uses, then €5.90/month.
Open the PDF tools