Add Page Numbers to PDF
Pick a corner, a format and where the count starts, and see it on the page before you download. Runs entirely in your browser.
Add page numbers
Numbers are drawn onto the pages with a standard font, so the rest of the document is left exactly as it was.
Two settings, because they answer different questions
Almost every real numbering job has front matter. A report opens with a cover and a contents page; a submission bundle starts with a letter; a thesis has a title page, an abstract and an acknowledgements section before anything a reader would call page one. So “which pages get a number” and “what that number says” come apart immediately, and a tool that offers only one control forces you to choose which of the two to get wrong.
Here they are separate. The page range decides which sheets are touched at all, and the starting number decides what the first of them says. Leave the cover out and start at 1, and the body is numbered the way a printed book is. Number everything but start at 0, and the cover carries a 0 you can ignore. Start at 47 to continue a document you numbered earlier.
Rotated pages are where these tools usually fail
A page in a PDF has its own rotation value, separate from its content: 0, 90, 180 or 270 degrees, applied by the viewer before it draws anything. Scanners set it constantly, and so does any report with a landscape table dropped into a portrait document.
The naive implementation writes the number at fixed coordinates in the page’s own space and calls it done. On a page that displays turned, that puts your carefully chosen “bottom centre” number somewhere along the left edge, rotated ninety degrees, reading upwards. This maps the position you picked onto the page as it is displayed, and turns the text to match, so a mixed-orientation document ends up with numbers in one consistent place.
Why the file barely grows
PDF defines fourteen standard fonts that every conforming reader already has, Helvetica among them. Referring to one costs a name in the document rather than an embedded typeface, so numbering a three-hundred-page document adds a few hundred bytes in total. Nothing else in the file is rewritten: the existing text stays selectable and searchable, vector artwork stays vector, and images keep the exact bytes they arrived with.