What happens in the page
Loading a file builds a page grid from the document's real page indices. Every row carries a delete checkbox, a pair of arrows and a rotation button: the arrows swap that page with its neighbour, and the rotate button adds 90 degrees to that page every time you press it, so three presses give 270 degrees. When you run the tool it creates a brand-new PDF, copies the pages that are still ticked in the order shown with copyPages(), applies each page's rotation with setRotation() and saves the result as <name>-pages.pdf. Tick nothing and the tool stops with “At least one page must remain” rather than emitting an empty document. Nothing is written until you press the button, so you can reorder, rotate and untick freely while you decide.
Where it breaks down
The checkbox in each row is the delete control — ticking it removes that page from the output, and the label above the list says so in its accessible name. Only one PDF can be loaded at a time. Rotation changes the page's /Rotate value on the copy, which is why the row shows “Original orientation” until you press the arrow; the page content itself is never redrawn, so a rotated scan is corrected rather than resampled. Pages you delete are simply not copied and cannot be recovered from the output. Document metadata, bookmarks, form fields, annotations and signatures are not carried into the new file, and encrypted PDFs cannot be opened at all.
Privacy: no data leaves this tab
The document is loaded with the File API straight into this tab and never leaves it; the site has no backend, so there is nothing to upload to and no copy is kept anywhere. Only the pdf-lib engine is fetched, once, from a public CDN before the first run.
Frequently asked questions
How do I delete a page?
Tick the checkbox on that row — the checkbox is the delete control, and its accessible label reads “Delete page N”. Untick it to bring the page back, then press the run button to write the new PDF.
Does rotating a page damage or resample it?
No. Rotation is stored as the page's /Rotate value on the copy, so text stays selectable and images keep their original pixels; viewers, printers and text extractors simply read the page the right way up.
Is there an undo?
Yes, because nothing is written until you run the tool: untick a page to restore it, use the arrows to move it back, and press rotate four times to return to the original orientation. Your source file is never modified.