everyday mac tools

Fix a scanned PDF that is sideways and out of order

· 6 min read

Preview handles both problems without any extra software. Open the PDF, show the thumbnail sidebar, select the sideways pages and press Command-R to turn them, drag thumbnails into the right sequence, then save. The whole repair takes a couple of minutes on a twenty page scan.

The part worth knowing is why a scan comes out this way, and why a rotation that looks correct on your Mac sometimes looks wrong on someone else’s. Both have simple explanations, and both change what you should do before sending the file on.

Rotate the pages that need it

  1. Open the PDF in Preview.
  2. Choose View, then Thumbnails to show the sidebar. Everything below happens in that sidebar, not in the main page view.
  3. Click a thumbnail to select a page. Command-click to add individual pages, or Shift-click to take a run of them.
  4. Press Command-R to rotate clockwise, Command-L for counterclockwise. Both work on the whole selection at once, which is what you want when every other page in a double-sided scan came out upside down.
  5. Press Command-S to save.

If pages alternate between right way up and upside down, that is a duplex scanner feeding the back of each sheet in the opposite orientation. Select just the wrong ones (click the first, then Command-click the rest) and rotate them twice, or change the duplex setting in the scanner software and rescan if there are many.

Rotating twice is correct for an upside down page. There is no single 180 degree command in Preview, so two presses of Command-R is the shortcut.

Put the pages back in the right sequence

Still in the thumbnail sidebar, drag a thumbnail up or down and drop it where it belongs. A line appears showing where it will land. You can drag several at once: select them first, then drag the group.

Two things speed this up on a long document.

  • Make the thumbnails bigger by dragging the sidebar wider, so you can read page numbers on the pages themselves rather than counting positions.
  • If the scanner fed a stack in reverse, do not drag thirty pages one at a time. Rescan with the reverse-order option in the scanner software, or scan in two halves and merge them in the correct order. Merging PDFs on a Mac without uploading them anywhere covers the merge.

To delete a page, select the thumbnail and press Delete. Blank backs of single-sided originals are the usual candidates. Check each one at full size first, because a page that scanned faintly can look blank in a thumbnail and still carry a signature or a stamp.

Insert a missing page by dragging a second PDF’s thumbnail into the sidebar at the right position, or by choosing Edit, then Insert, then Page from Scanner if you still have the original on hand.

Why the fix sometimes does not travel

Rotating a page in a PDF usually does not redraw the image. It records an instruction that says “display this page turned 90 degrees”. Every mainstream reader honors that instruction, so in practice the file looks right wherever it is opened.

Where it goes wrong is at the edges of that promise. Some printers, some scanning and fax pipelines, and some systems that pull page images out of a PDF for processing read the underlying page rather than the display instruction, and print or extract the original orientation. If your fixed scan is going into a court filing system, a records portal or a print shop workflow, that risk is real.

Two things reduce it:

  • Check before you send. Open the saved file in a different app on the Mac, and print one page to PDF from the print dialog. If the printed output is right way up, the rotation is being applied at the point that matters.
  • Flatten by exporting. Printing the whole document to PDF from the print dialog (choose PDF, then Save as PDF) produces a file whose pages are drawn in their final orientation. The catch is significant: this can drop the searchable text layer, any form fields and bookmarks, and it re-encodes the images, so file size and sharpness change. Only do it when you know you need it.

There is a related issue with cropping. Preview’s selection tool can crop a scan, but a PDF crop hides the area rather than removing it, so the original edges are still inside the file. That matters if something in the margin was the reason for cropping. What a PDF still hides covers what stays behind.

Do the OCR after the rotation, not before

If you want the scan to be searchable, order matters. Text recognition reads the page as it is presented, and a sideways page yields nothing useful. Rotate first, reorder first, delete the blanks first, and only then run recognition, so the text layer matches the page you end up with.

Making a scanned PDF searchable on a Mac covers the options. If you rotate a page after recognition has run, the text layer may stay in the old orientation, which produces a file that looks right and searches wrongly.

Compression belongs at the end too. Shrinking a scan before you finish editing means you compress pages you are about to delete, and you make every later step work from lower-quality images. Compressing a PDF without wrecking the scans explains where the quality actually goes.

When a scan is one step in a longer job

For an occasional scan, Preview is genuinely the right tool and there is no reason to add anything.

When a scan is the first step in preparing documents for someone else, Basalt keeps the whole sequence in one window. It is a native Mac PDF app with eighteen tools, including reordering, rotating and deleting pages, recognition to make a scan searchable, compression, merging and splitting, headers and footers, Bates numbers, and redaction that excises content rather than covering it. Every tool writes a new file, so the original scan is never modified, which matters when you are working from something you cannot rescan.

It also has an inspection tool that reports what a PDF still contains: metadata, attachments, hidden layers and stale thumbnails. That is the honest check before a fixed scan goes to a client or a filing system. Basalt runs on macOS 13 Ventura or later, is free for 24 hours with every tool and no account, then $29 for a lifetime license on up to three Macs.

Questions

Preview saved the rotation but it looks wrong again when I reopen the file. Check that you saved rather than closing and discarding, and check you are opening the same copy. If a cloud folder holds an older version, Finder may be showing you that one. Preview also keeps versions: File, then Revert To shows what it has.

Can I rotate pages without opening Preview at all? Yes. Select the PDF in Finder, open Quick Look with the spacebar and use the rotate button, or right-click, choose Quick Actions, then Rotate Left. Quick Actions rotate every page, which is right for a wholly sideways document and wrong for a mixed one.

Will rotating reduce the quality of the scan? No. Recording a rotation does not re-encode the image. Exporting through the print dialog to flatten the orientation does re-encode, which is the one case where quality changes.

The pages are in order but every one is slightly crooked. That is skew from the feeder, and rotation in ninety degree steps will not fix it. Most scanner software has a deskew or straighten option. Rescanning with that enabled is faster and cleaner than trying to correct it afterward.