Documents

Organising and restructuring PDFs locally: when and how to reorder pages without paid software

Written and maintained by the KitYards team Published: 7 min read

A document arrives with the appendix in the middle, the scanner has fed two pages at once, or the signature page needs to move to the front before it goes to the client. The reflex is to look for the PDF editor nobody has a licence for, and then to settle for a website that wants the file uploaded. Neither is necessary. Rearranging pages is the simplest thing you can do to a PDF, it does not touch the content at all, and a browser can do it in a couple of minutes.

Three different jobs, all called “editing a PDF”

Confusion about which tools are needed comes from lumping three very different operations together. Restructuring changes which pages exist and in what order — reordering, rotating, deleting, extracting, merging. Content editing changes what is printed on a page — rewriting a paragraph, moving a table, correcting a figure. Signing and securing adds cryptographic identity, certificates and permissions.

Only the first of those is straightforward, and it also accounts for the overwhelming majority of real requests. Content editing is genuinely hard, because a PDF is a description of a finished layout rather than a document with reflowable structure — which is why editors that attempt it produce mismatched fonts and broken line breaks. Recognising that you only need restructuring is usually the whole solution.

When reordering is the right fix

  • The scanner produced the pages out of order — a sheet was picked up twice, or the stack was loaded upside down.
  • A duplex scan is interleaved. The classic case, described below.
  • The appendix, the annexes or the cover letter are in the wrong place after several people merged their sections.
  • Internal pages must be removed before the document is sent — a pricing sheet, an internal note, a draft comment page.
  • Landscape pages are sideways because the scanner did not rotate them.
  • Several documents were merged and the result needs a coherent order and a title page at the front.
  • Only one section should be shared at all — extracting pages 4 to 9 discloses less than sending forty pages and asking the reader to ignore thirty-one of them.

The duplex scan problem

A scanner without a duplex feeder produces this constantly. You scan all the odd-numbered sides first, getting pages 1, 3, 5, 7. Then you flip the stack and scan the even sides, which come out in reverse: 8, 6, 4, 2. Merging the two files gives you 1, 3, 5, 7, 8, 6, 4, 2 — every page present, none in the right place. It looks like a disaster and is thirty seconds of dragging thumbnails: interleave the second half backwards into the first. No re-scanning required, and no quality lost, because the pages themselves are untouched.

What actually changes inside the file

Internally, a PDF is a collection of numbered objects — fonts, images, content streams, annotations — organised by a page tree. Each page is an object that references the resources it draws. Reordering pages rewrites the tree's list of children; it does not touch a single content stream. Deleting a page removes an entry and leaves its resources unreferenced, to be discarded when the file is written out. Rotating sets an integer attribute on the page: 90, 180 or 270.

The consequence matters more than the mechanism: because nothing is re-encoded, restructuring is entirely lossless. Text stays selectable and searchable, images keep their original resolution, vector graphics stay vector, and the file usually gets slightly smaller because unreferenced objects are dropped. This is the opposite of compression, where every operation costs a little quality — you can reorganise the same document ten times and the tenth version is identical in quality to the first.

Reorder, rotate and delete pages in your browser

Every page is rendered as a thumbnail so you can see what you are moving, then dragged into place. The rebuilt PDF is generated locally with pdf-lib and downloaded — the document is never uploaded, which is the point when it is a contract or a medical record.

Organize pages

A workflow that takes two minutes

  1. 1 Open the document and look at the thumbnails first. Deciding the target order before you start dragging is faster than improvising, especially past twenty pages.
  2. 2 Fix rotation before order. Sideways pages are hard to identify by thumbnail, and correcting them first makes the rest of the job visual rather than analytical.
  3. 3 Delete what should not be there. Doing this early means fewer pages to arrange.
  4. 4 Move pages in large blocks, not one at a time. Most misordering is sectional — an eight-page appendix in the wrong position is one move, not eight.
  5. 5 Review the whole sequence once at the end, then download and open the result before sending it. Check the page count and the first and last page.

Merge first, then organise

Assembling a tender response, a set of expense receipts or a complete application pack is a two-step job: combine the parts into a single file, then put that file into the right order. Trying to get the order right by merging in exactly the correct sequence works until one document turns out to have its own pages the wrong way round, at which point the whole assembly has to be redone.

Combine several PDFs into one document

Add the files, set their order, and download a single PDF. Merging is lossless as well — the pages are copied into the new document exactly as they were.

Merge PDFs

Or split, when the document should not travel whole

The reverse job is just as common. A sixty-page report where the recipient only needs the financial annex, a bank statement where only one month is relevant, a scanned bundle that should become one file per invoice. Extracting the pages is both more considerate and more careful with information than sending everything.

Extract a page range into its own file

Choose the ranges and get separate documents, each keeping the exact quality of the original pages.

Split a PDF

Where the paid desktop suites are still worth it

An honest guide has to say what a browser tool does not do. If your work regularly requires any of the following, a licence is a reasonable purchase and no free tool will substitute for it.

  • OCR — making a scanned document searchable by recognising the text in the images. Possible in a browser, but heavy, and desktop engines are considerably more accurate.
  • True redaction — removing content from the file rather than covering it, with a verifiable audit of what was removed.
  • Editing text on the page — changing a clause or a figure in place, with fonts matched and lines reflowed.
  • Qualified digital signatures — certificate-based signing with legal standing, timestamping and validation.
  • PDF/A conversion — producing files that meet formal archival standards, with validation reports.
  • Advanced form creation — building interactive forms with calculated fields, validation and submission logic.

Notice what is not on that list: reordering, rotating, deleting, extracting, merging, compressing and converting pages to images. Those are the operations most people are actually being asked to pay for, and they no longer require anything beyond a browser.

The subscription question

The economics of PDF software are unusual. The format has been an open ISO standard since 2008, and the operations described here are a few hundred lines of work against a well-documented object model. Yet the common experience is a monthly subscription for a suite, or a free web tool that limits you to two files an hour until you subscribe to it instead. If your requirement is genuinely OCR and certified signatures, pay for the tool that does them well. If your requirement is that page 14 should be page 2, you are being charged for a rounding error.

Checklist before you send the rebuilt file

  • Open the downloaded file rather than trusting the preview, and check the page count.
  • Confirm every page is the right way up, including landscape tables.
  • Verify that the pages you deleted are actually gone — and that you deleted the right ones.
  • Check that the text is still selectable, which confirms nothing was rasterised in the process.
  • If the document is going outside your organisation, check the filename and the metadata before it leaves. Nothing is uploaded here, but the file itself still carries whatever its author put in it.

The tools used in this guide

Free, no sign-up, and everything runs on your own device.

Keep reading