How it works
Each page is rendered with pdfjs-dist into a small thumbnail. Drag a thumbnail to a new spot (or use the arrow buttons), then click Download — pdf-lib's copyPages rebuilds the document in your chosen order.
FAQ
Will this lose any pages? No. Every page from your original PDF is included exactly once in the output, just in the order you set.
Why are the thumbnails small? They are rendered at low resolution (about 110 px wide) on purpose. A 200-page PDF would otherwise allocate hundreds of megabytes of canvas memory in the browser. The downloaded PDF is full quality — only the preview is downscaled.
Is text/bookmarks/links preserved? Page content, fonts, and most annotations are copied via pdf-lib's copyPages. Document-level features like the bookmarks tree (outline) and hyperlinks pointing to other pages by index may not survive — pdf-lib does not deep-rewrite cross-page references.