Skip to content
Allin

Putting a Scanned Document Back in the Order It Was Printed

Published 7/2/2026 · 8 min read · File tools

Daniel Okonkwo

Daniel OkonkwoFront-end developer and tech writer at Allin

Web performance · File formats

Checked against 3 sources

View profile
In short

Reordering a PDF rebuilds it: the tool creates an empty document and copies the pages across in the sequence you gave, so the result is a new file whose page order is whatever you specified. That much is the same mechanism as extracting a subset, and the difference is what you are keeping — extraction takes a few pages out and leaves the rest behind, reordering keeps everything and changes only the sequence. The practical consequence is the same in both cases and worth stating plainly: what survives is pages. Anything attached to the document as a whole rather than to a page may not, and the usual casualties are bookmarks, internal links between pages, form field structure, attachments and any digital signature, which is invalidated because the byte sequence changed. If your document has none of those — and a scan has none of them — reordering is completely safe and lossless, because copying a page moves its content across untouched without decoding or re-encoding a single image. The commonest reason to need it is a duplex scanner that produced all the fronts and then all the backs, which is not a jumble but an interleave: with n sheets, the pages arrive as 1, 3, 5 … then 2, 4, 6 …, and the fix is to interleave them back rather than to drag pages around one at a time. The second commonest is a stack fed the wrong way, which gives the backs in reverse order. Both are mechanical, both are fixed in one pass, and both are far quicker to fix than to diagnose page by page.

A duplex scanner that took one side at a time, a stack fed upside down, a page that came out twice. Reordering is not the same operation as extracting pages, and knowing which one you are doing tells you what happens to everything that is not a page.

Reordering and extracting are the same machine, aimed differently

Both operations do the same thing under the surface: make an empty document, copy pages into it, save. Extraction hands that machine a short list — pages four and five — and the result is a two-page file. Reordering hands it a permutation of every page, and the result is a complete document in a different sequence. Deleting a page is reordering with one index left out; inserting one is a merge followed by a reorder. There is no separate mechanism for any of them, which is why they behave identically in the ways that matter.

The duplex interleave, and why dragging pages is the slow way

A scanner without a duplex feeder asks you to scan one side of the stack, turn it over, and scan the other. The output is not shuffled — it is two runs joined end to end. For a ten-sheet document you get pages 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 followed by their backs, and where those backs land depends on how you turned the stack: keeping the order gives 2, 4, 6 … and flipping the whole pile gives 20, 18, 16 … in reverse. Recognising which of the two you have takes one glance at the last page of the file, and it tells you the entire permutation without inspecting anything else.

That is why writing the sequence out beats dragging thumbnails. Dragging is a page-at-a-time operation on a problem that has a closed form: you already know where every page goes, and stating the order once is both faster and impossible to get half right. On a twenty-page document, dragging is nineteen chances to drop something in the wrong place; a written sequence is one thing to check before you press the button.

What does not survive the rebuild

Pages carry their own content, so text, images, page size and rotation all come across exactly as they were. What is attached to the document rather than to a page is where the losses are. Bookmarks point at page objects and are commonly dropped or left pointing somewhere unhelpful. Internal links between pages break for the same reason. Form fields usually survive individually but their document-level structure can be rebuilt in a way that changes behaviour, which is why flattening a completed form before reordering is the safe habit. Attachments and document-level metadata may or may not be carried. And a digital signature is invalidated, without exception, because it describes a byte sequence that no longer exists.

Duplicates, blanks and the page that came out twice

A duplex scan of single-sided sheets produces a blank page after every real one, which doubles the file and irritates every reader. Removing them is reordering with the even indices left out, and it is worth doing before anything else because it halves the number of pages you then have to think about. Be careful with what counts as blank: the back of a printed sheet often carries faint show-through or a printer's registration marks, so check rather than assume a page is empty because it looks pale in a thumbnail.

The last check is the same one that closes every operation in this batch: count. The result should have exactly the number of pages you intended, which for a pure reorder is the number you started with and for a blank-removal is half of it. A count that is one out is a page you dropped or kept by accident, and it is far cheaper to find now than in the reply from whoever you sent it to.

Four scanner accidents and the sequence that undoes each, for a ten-sheet double-sided document
What happenedOrder you gotWhat to specify
Fronts, then backs, stack kept the same way up1, 3, 5 … 19, then 2, 4, 6 … 20Interleave: 1, 11, 2, 12, 3, 13 …
Fronts, then backs, whole pile flipped over1, 3, 5 … 19, then 20, 18, 16 … 2Interleave with the second half reversed: 1, 20, 2, 19, 3, 18 …
Single-sided sheets run through a duplex feederReal page, blank, real page, blank …Odd indices only: 1, 3, 5 …
The feeder pulled two sheets and you rescanned oneA page appears twice, one of them out of placeFull sequence with the stray index left out
Organize a PDFReorder, turn and remove PDF pages by dragging their thumbnails. Several documents at once, their pages free to mix.Try the tool

Frequently asked questions

Is reordering lossless?
For the page content, entirely. Copying a page moves its drawing instructions and its embedded images across as they are, with no decoding and no re-encoding, so a scan reordered ten times is bit-for-bit the same scan. The losses, where they exist, are structural: bookmarks, internal links, form structure, attachments and any signature. A scanned document has none of those, which is why this is the safest operation in the whole set on exactly the files people most often need it for.
How is this different from extracting pages?
In what you keep, not in how it works. Extraction produces a shorter document containing only the pages you named, which is what you want when a form asks for proof of address and you have a six-page bill. Reordering produces a complete document in a different sequence, which is what you want when the whole thing has to be readable from start to finish. Mechanically both build a new file page by page, so the same things survive and the same things do not.
Can I insert a page into the middle?
Yes, in two steps: merge the new page onto the end of the document, then reorder so it lands where it belongs. It feels roundabout and it is exactly what any tool offering an insert does internally, because there is no operation that puts a page into a sequence without rewriting the sequence. Doing it explicitly has one advantage — you state the final order once and can check it before pressing the button, rather than trusting a drag to have landed on the right boundary.
My document has bookmarks. Will I lose them?
Probably, and if they matter you should plan for it rather than discover it. Bookmarks are a document-level tree pointing at page objects; rebuilding the document creates new page objects, and most tools do not rewire the tree to match. On a scan it is a non-issue. On a long report with a navigable table of contents, do the reordering first and rebuild the bookmarks afterwards on the finished file, or fix the order in whatever produced the document rather than in the PDF.
The scan has a page upside down as well as out of order. One operation or two?
Two, and the order between them does not matter because they touch different things: rotation writes a property on a page, reordering rebuilds the sequence of pages, and a page carries its rotation with it wherever it lands. Do whichever is easier to see first — usually rotation, because an upside-down page is obvious in a thumbnail strip and a wrong sequence is not.

Articles you may find interesting

All guides
How-toAdding Page Numbers to a PDF When the Pages Are Rotated or Mixed SizesNumbering a tidy document is trivial. The cases that bite are a page turned sideways, a Letter sheet among A4 ones, a print file with bleed, and a document that already prints its own number. All four were tested: on the first three the number lands exactly where you asked, and the fourth is not detected at all.How-toExtracting a Few Pages from a Statement Without Installing AnythingA landlord wants page 3. An accountant wants January. You need to send those pages and not the eleven others, and there is a trap: the obvious way leaves the removed pages inside the file you send.ExplainerYour PDF Looks Straight to You and Sideways to ThemYou rotated the scan, saved it, and the recipient still opened it sideways. Nothing is broken — rotation in a PDF is an instruction rather than a change to the page, and instructions can be ignored. Here is when that happens and how to produce a file that cannot be misread.GuidePull the Plug: Which Online File Tools Actually Upload Your DocumentEvery online file tool promises your document is safe. Almost none tell you whether it leaves your machine at all. There is a five-second test that settles it without reading a single privacy policy, and it works on any tool — including this one.How-toMerging an Application Pack into One PDF, in the Right OrderA rental file, a loan application, a tender: the requester wants one document, in the order they listed. The merge itself takes seconds. What goes wrong is the ordering, the page sizes and the file that silently loses its signature — all of which are avoidable if you know where they bite.How-toSending a Document for Signature: the Workflow, Not the LawWhether a drawn signature is valid is settled elsewhere. What decides whether your document actually gets signed is the order you ask people in, what the audit trail records, and six failure modes that have nothing to do with the law.

Related tools

Retention windows and processing models are what each service published on the dates cited. They change without notice — re-run the offline test on any tool you rely on rather than trusting a comparison, including this one.

Sources

Spotted a mistake in this article?