Fixing a badly scanned PDF: reorder, rotate and remove pages

6 min read · Updated 13 October 2026

Scanning a stack of paper rarely produces a perfect PDF on the first try. Pages come out sideways or upside down, the back sides end up in the wrong order, blank pages appear between the real ones, and a page that jammed in the feeder shows up twice. The good news is that you can fix all of this without scanning again, as long as every page you need is somewhere in the file. This guide walks through the common problems and how to fix each one.

Before you start: work on a copy

Keep the original scan untouched until you are sure the fixed version is right. If you make a mistake while reordering, such as dropping a page you needed, the original is your safety net. Good tools save the result as a new file rather than overwriting what you uploaded, but it is still worth keeping the original scan in a safe place on your own computer until the job is finished.

It also helps to know how many pages the paper document has. Count the sheets, note whether they are printed on one or both sides, and write down the expected page count. That number is the easiest way to check your result at the end.

Sideways and upside-down pages

Orientation problems are the most common and the easiest to fix.

  • Sideways pages usually come from landscape pages (tables, spreadsheets, drawings) fed in the same way as portrait ones, or from a phone scanning app that guessed the orientation wrongly. Rotate them 90 degrees clockwise or anticlockwise, whichever makes the text read normally.
  • Upside-down pages happen when a sheet was placed in the feeder the wrong way round, or when the back sides of a stack are scanned after flipping it. Rotate them 180 degrees.

In a PDF, rotation can be stored as a setting on the page that tells viewers how to display it. Changing that setting is lossless: the scanned image is not recompressed, so the quality stays exactly the same. You can rotate pages as many times as you like without any degradation.

If every page in the file is turned the same wrong way, rotate them all at once rather than page by page.

The double-sided scanning problem

Many scanners and copiers can only scan one side of a sheet at a time. To scan a double-sided document, people scan the stack once for the fronts, then turn the whole stack over and scan it again for the backs. The result is a PDF with all the right pages in the wrong order.

Why the order goes wrong

Take a five-sheet document printed on both sides: pages 1 to 10. Scanning the fronts gives pages 1, 3, 5, 7 and 9. When you turn the stack over, the last sheet is now on top, so the backs come through in reverse: 10, 8, 6, 4, 2. The PDF you end up with looks like this:

Position in the file12345678910
Actual page13579108642

The backs may also be upside down, depending on how you turned the stack and how the document is bound.

How to fix it by picking pages

The cleanest fix is to build the correct order by picking pages from the scrambled file one at a time. For the example above, pick the pages at these positions:

1, 10, 2, 9, 3, 8, 4, 7, 5, 6

The pattern is: first page, last page, second page, second-to-last page, and so on, working inwards from both ends. That alternates a front with its matching back.

Sometimes the backs come out in forward order instead, for example if you reordered the stack before the second pass. In that case the file reads 1, 3, 5, 7, 9, 2, 4, 6, 8, 10, and you pick positions 1, 6, 2, 7, 3, 8, 4, 9, 5, 10: one from the first half, then one from the second half, alternating.

Look at the first few pages before you start to see which case you have. Then write the sequence down so you do not lose your place on a long document.

If you scanned the fronts and backs as two separate files, the same logic applies: alternate between the two files, taking the backs from the end of their file if they came out reversed.

Blank pages

Blank pages appear when you scan a mixed stack double-sided: every sheet that was printed on one side produces an empty back. They make a document longer, harder to page through and slightly larger, and they confuse page numbering.

Go through the file and remove pages that are genuinely empty. Be careful with pages that look blank in a small thumbnail but carry a faint note, a stamp or a single line of text. Also check whether a blank page is intentional: some formal documents include pages marked "This page intentionally left blank", and some printed booklets need blanks to keep chapters starting on the right-hand side. If the PDF will be printed double-sided later, removing a blank may shift every following page to the other side of the sheet.

Duplicate pages

A paper jam or a feed of two sheets at once often makes a scanner re-scan a page, or you may rescan a page that came out crooked. Duplicates are easy to miss because they usually sit right next to each other. When you see two copies, keep the better one: straighter, sharper, with no shadow or folded corner. Then remove the other.

A missing page is the other side of the same problem. If you remove duplicates and still have fewer pages than you counted at the start, a page probably went through the feeder stuck to another one. You will need to scan that page separately and insert it in the right place.

Extracting only the pages you need

Sometimes the fix is not to repair the whole document but to take out just part of it: the signed page of a contract, the two pages of a statement that your landlord asked for, or one chapter of a manual. Extracting pages creates a new, smaller PDF with only those pages, leaving the original as it is. This is often quicker than deleting everything you do not want, especially from a long file.

If you need several separate pieces, splitting by page ranges may be faster than extracting each one; see how to split a PDF.

A sensible order of work

  1. Fix the page order first, including the double-sided interleaving.
  2. Remove blank and duplicate pages.
  3. Rotate pages so every one reads upright.
  4. Check the page count against your note and flick through the whole file once.
  5. Only then compress, add page numbers or protect the file, in that order.

Scans are usually large because each page is an image, so compressing the cleaned-up file is often worthwhile. Our guides on turning scanned documents into a PDF and reducing PDF file size cover that step. Remember that a scanned PDF is a set of images: reordering and rotating pages does not make the text searchable or selectable.

Doing it on FlexyFiles

For most clean-up jobs, Organize PDF is the place to start. Upload the scan and every page appears as a card. Drag cards to reorder them, click to rotate a page 90 degrees at a time (twice for upside down), and remove blanks and duplicates. Save the result as a new PDF; your uploaded file is not changed.

For specific jobs there are dedicated tools: Rotate PDF to turn individual pages or all pages at once, Delete pages to drop pages, and Extract pages to keep only the ones you need.

For double-sided interleaving on a long document, the full workspace at /pdf/app is handy. Open the file's page list with the + next to it in "Your files", click each page in the order from your written sequence and choose "Add this page", so the pages line up in the Processing column in the correct order. You can rotate or remove items there too. Then add a Merge step, enter a name under "Save as" and click "Run". The fixed file appears in "Your files" for download. If you scanned fronts and backs as two files, pick pages from both files in the same way.

Files are deleted automatically 48 hours after the workspace was last used, so download your result and keep it with the original scan.

More guides

All guides →