Pages in the Wrong Order? Fix It in Seconds
A document scanned in two passes — all front pages then all back pages — needs interleaving. A merged PDF from multiple contributors has chapters scrambled. A draft report has the appendix before the introduction.
The Page Reorder tool gives you visual, drag-and-drop control. Upload your PDF, see thumbnail previews of every page, drag them into the right sequence, and download the corrected document. Nothing leaves your device.
What You Can Do
Reorder pages by dragging — move any page to any position in the document. The UI displays thumbnails so you're working with visual page content, not guessing from numbers.
Reverse the entire document — flip all pages from front-to-back to back-to-front in a single click. Useful for correcting documents printed and scanned in reverse.
Delete unwanted pages — remove pages directly from the reorder interface before downloading, avoiding a separate tool step.
Move pages to specific positions — type a target position for precision reordering in documents with hundreds of pages where dragging across the full list isn't practical.
How It Works Technically
PDF pages aren't a simple numbered list — each page is a complex object linked to shared resources (fonts, images, form data) across the document. Reordering incorrectly breaks these cross-references.
pdf-lib handles this safely:
- The PDF is parsed into a complete object graph in browser memory
pdfDoc.getPages() retrieves all page objects in current sequence
- A new PDF is created with
PDFDocument.create()
newDoc.copyPages(originalDoc, newOrderIndices) safely duplicates each requested page with all its dependencies
- Pages are added to the new document in your specified order
- The correctly structured, reordered PDF is saved and downloaded
Page thumbnails are generated by PDF.js, which renders each page to an HTML Canvas at reduced scale for the drag-and-drop interface.
Practical Scenarios
Double-sided scanning: Most desktop scanners that don't support duplex scanning require two passes — scan all fronts, flip the stack, scan all backs. The result is all odd pages followed by all even pages. Interleaving them takes seconds with the reorder tool.
Custom presentation sequencing: Rearrange slides or sections from a standard deck to match a specific audience or meeting agenda without rebuilding the original file.
Correcting merged documents: Af...
Looking for a more detailed deep-dive and advanced tips?
Read Full Article on our Blog