How Add page numbers works
Add page numbers to every page of a PDF with pdf-lib. It stamps the numbers in your chosen position (bottom centre, top right, etc.), font size, and format (1, Page 1, 1/N…), starting from any number you set.
Useful for reports, academic papers, or any multi-page document that needs clear navigation. A start-page offset lets you leave a cover or table of contents unnumbered so the count begins where you want it.