
Add page numbers
Number the pages of a PDF, in any corner and any style. Drop as many files as you like.
Add page numbers stamps a number onto every PDF page, at whichever corner or edge you point at, with the margin and font size you set. Pick 1 2 3, i ii iii, A B C, Page 1 or 1 of 10, in black or a colour, bold or regular. Mark the first sheet a cover and it stays bare.
Questions
Where does the number go on the page?
Wherever you point at: top or bottom, then left, centre or right. The margin setting is the gap to the nearest edges, 24 points by default. A centred number is placed by measuring the text width, so it sits on the middle of the sheet whatever the label says.
Can I start from a number other than 1?
Yes. The start setting is the number given to the first page, and every page after it counts up by one. It accepts any whole number, including zero and negatives, and rejects anything else with "start must be a whole number". Turn on the cover option and the first sheet is left bare, with the count starting on page two.
Does it upload the PDF or need an account?
Neither. pdf-lib loads your file, draws the numbers and saves it again, all inside a Web Worker in this tab. No request goes out while it runs, and there is nothing to sign in to. The file you download was built on your own machine from the bytes you dropped in.
Can I number a whole batch at once?
Yes. Drop as many PDFs as you like and each is handled separately, coming back as its own file with a -numbered suffix. Each file restarts at your start value rather than continuing across the batch. If you want one run of numbers spanning several documents, use Bates numbering instead.
What if there is already content at the bottom of my page?
The number is drawn over it. Nothing is erased, no white box is painted behind the text, and no space is added to the page, so a footer already sitting where you put the number will collide. Move the number to another corner, or raise the margin, and the preview shows the result before you run it. Check the first page of the result before you run a long document.
How is this different from PDF page labels?
This one paints ink onto the page, so the numbers are part of the printed document. Page labels change the label your reader shows in its page box and thumbnails, and draw nothing at all. Use this for something you are printing and page labels for something you read on screen.
Compare
| Tool | Runs on the CLI | Live as you type |
|---|---|---|
| Add page numbers | Yes | No |
| PDF page labels | Yes | No |
| Add header/footer | Yes | No |
| Add watermark | Yes | No |
| Bates numbering | Yes | No |
| Sign PDF (draw or image) | Yes | No |