Add Page Numbers to PDF
Put page numbers on a PDF. Choose the position, format and size, and the page the numbering starts on, for example after the cover.
Enter 2 to skip a cover page.
Your PDF file is processed on this device and never uploaded to a server.
How to use it
- Choose a PDF file.
- Pick where the number goes (top or bottom; left, center or right) and its format.
- To skip a cover, set Start on page to 2. First number is the number printed on that page.
- Check the summary under the settings, press Add page numbers and download the result.
How the numbers are counted
Numbering starts on the page you enter in Start on page and goes up by one on every page after it. The formula: number on page p = first number + (p − start page). Pages before the start page get no number but stay in the file.
Example: a 12-page report with a cover. Set Start on page to 2 and First number to 1. Page 2 shows 1 and page 12 shows 11. In the 1 / N format, N is the number on the last page of the document, so page 12 reads "11 / 11".
The page choice (odd, even or specific pages) only decides where a number is printed; the count keeps running underneath. If the appendix on pages 11-12 should stay unnumbered, choose pages 2-10. When you type the pages yourself like this, N follows the last page you chose, so page 10 reads "9 / 9".
Where the number sits on the page
The distance from the edge is measured from the edge of the visible page to the edge of the digits. PDF measures in points (1 point = 1/72 inch), so 10 mm is 28.35 points. An A4 page is 595.28 × 841.89 points. The text "1 / 11" in 10 pt Helvetica is 25.02 points wide, so at the bottom center it starts at x = (595.28 − 25.02) / 2 = 285.13 points, with its baseline at y = 28.35 points.
Two things often make the real calculation less simple than that, and the tool handles both:
- Rotated pages. A page can be stored as portrait but shown as landscape because of a
/Rotate90 entry. The number goes at the bottom of the page as you see it on screen, reading upright, not along the right edge of the original sheet. - Page areas that don't start at 0,0. The visible part of a page is set by its CropBox. Scans and PDFs that were trimmed often have a CropBox offset from the MediaBox. Positions are measured from the CropBox, so a number never lands in the trimmed-off part.
Limits
Numbers are set in Helvetica, one of the standard fonts every PDF reader already has, so the file grows by only a few KB. The number is drawn on top of the page content. If there is already text or an old page number in that spot, the two will overlap; pick another position or change the distance from the edge. Numbers are plain digits (1, 2, 3). Roman numerals for front matter are not available, but you can leave those pages out with Start on page.
Questions
How do I leave the cover page without a number?
Can the numbering start at something other than 1?
Can odd pages have the number on the right and even pages on the left?
Why is the number upright on landscape pages?
/Rotate entry, and writes the number in that direction. The number ends up at the bottom of the page as you see it on screen.