How Add page numbers works
Add Page Numbers to PDF stamps a page number label on every page of your document. You choose the position (bottom-centre, bottom-right, top-left and others), the font size, and the number format: a bare number, "1/12", "Page 1" or "Page 1/12". pdf-lib writes the labels into the page content streams inside your browser, and the PDF never moves off your machine.
The tool resolves each label per page: if you choose the "Page N of Total" format and your document has 30 pages, each page receives the correct values automatically. The starting number is configurable, which is useful for documents that are chapters in a longer work and need to continue the numbering from a previous file. Font size and margin offset from the edge are adjustable so the stamp fits within the available white space without overlapping the existing content.