PDF Page Numberer
Add page numbers to selected PDF pages locally with custom sequences and mirrored facing-page placement, then download the stamped copy.Numbered PDF ready
- Source pages
- {{ pageCount }}
- Stamped pages
- {{ computation.values.selected_page_count }}
- First label
- {{ computation.values.first_label }}
- Output size
- {{ formatBytes(outputSize) }}
| PDF page | Label | Position | X | Y | Copy |
|---|---|---|---|---|---|
| {{ row.page }} | {{ row.label }} | {{ row.position }} | {{ formatPoint(row.x) }} | {{ formatPoint(row.y) }} |
{{ chartError }}
Printed page numbers and PDF page positions often diverge. A cover can be the first page in the file but carry no visible number, front matter may use Roman numerals, and a report added to an earlier volume may need to begin at 47 rather than 1. A sound numbering plan separates the pages that receive marks from the sequence printed on them.
Visible numbering serves readers who cite, print, or assemble the document. It does not change the file's page order, create new pages, or necessarily change the page label shown by a PDF viewer. Those are separate parts of a PDF and can remain different after text numbers are stamped onto the page.
- PDF page
- The page's physical position in the file, counted from 1.
- Sequence number
- The value assigned to each selected page, beginning from a chosen starting value and increasing by one.
- Label
- The complete text drawn on the page, such as
Page 7 of 18oriv. - Anchor
- The top or bottom placement, aligned to the left, center, or right of the page box.
Selective numbering is useful for covers, appendices, inserted sheets, and combined packets. Facing-page layouts add another choice because outside-edge labels normally alternate right on odd PDF pages and left on even PDF pages. Centered labels do not need that alternation.
A mathematically valid position can still cover existing footer text, sit too close to a crop boundary, or disappear against a dark background. Page size, rotation, font size, margins, color, and opacity all affect readability. Keep the original PDF and inspect the finished copy in a viewer before distributing or printing it.
How to Use This Tool:
Choose the page scope and numbering sequence first; appearance settings only refine where and how the finished labels are drawn.
- Choose one unlocked PDF no larger than 75 MiB and containing no more than 500 pages. The sample PDF is available for a placement rehearsal.
- Enter Pages to number as
all,odd,even, comma-separated page numbers, an ascending range such as3-7, or an open range such as8-. An out-of-range or descending selection must be corrected before stamping. - Set the position, Label format, Start number, and numbering style. The label must contain
{n}; optional tokens can add the selected-page total, original PDF page, or document page count. - Adjust the built-in font, size, color, opacity, and margins when the document needs them. Enable Mirror facing pages only for left- or right-aligned outside-edge numbering.
- Add the numbers, compare the stamped count and first and last labels with the plan, then download and visually inspect the numbered PDF.
Interpreting Results:
The selected-page count confirms how many stamps were created, while the first and last labels confirm the sequence. The Stamp ledger ties every label to its original PDF page and calculated position. Check these values before relying on the placement chart, which summarizes distribution rather than showing page content.
- A six-page selection beginning at 10 ends at 15, regardless of the original PDF page numbers selected.
{total}means the number of selected pages;{docTotal}means every page in the source document.- Mirroring follows odd and even PDF page positions, not the printed sequence value.
- A successful save proves that a new PDF was created, not that every stamp avoids existing text. Open representative first, middle, last, rotated, and unusually sized pages.
Technical Details:
Page numbering is a deterministic transformation with three stages: parse the page selection, generate one label per selected page, then place each label inside that page's box. Duplicate selections collapse to one page and the final page list is sorted in ascending PDF order.
Transformation Core
| Stage | Rule |
|---|---|
| Select pages | Resolve all, odd or even pages, individual numbers, closed ranges, and open ranges against the actual document page count. |
| Build sequence | Assign consecutive values from the start number in selected-page order, then render Arabic, zero-padded, Roman, or alphabetic text. |
| Expand label | Replace every {n}, {total}, {page}, and {docTotal} token with its applicable value. |
| Resolve anchor | Keep the chosen anchor, except that facing-page mirroring sends odd PDF pages right and even PDF pages left. Center positions remain centered. |
| Draw stamp | Measure the rendered label in the chosen standard font, calculate coordinates, clamp them inside the page box, and write text with the selected color and opacity. |
Formula Core
For selected-page index i, beginning at zero, the sequence value is the start number plus that index.
Horizontal placement uses page width W, measured text width T, and horizontal margin M. The raw coordinate is chosen by alignment, then constrained so the label remains inside the page box.
For vertical margin V, page height H, and font size S, bottom labels use V as the baseline and top labels use H − V − S. Horizontal and vertical coordinates are finally clamped to the drawable page box.
Number and input boundaries
| Setting | Accepted boundary | Important behavior |
|---|---|---|
| Start number | 1 to 999999, inclusive | The first selected page receives this value. |
| Roman sequence | Final value no greater than 3999 | Uppercase and lowercase forms use the same numeric limit. |
| Alphabetic sequence | Final value no greater than 18278 | The sequence extends through ZZZ. |
| Font size | 8 to 24 pt, inclusive | Text width is measured at the selected size before placement. |
| Margins | 12 to 144 pt, inclusive | The horizontal margin does not affect centered labels. |
| Opacity | 25% to 100%, inclusive | Opacity changes appearance, not label placement. |
Privacy and Limits:
The PDF is read and stamped in the current browser tab; it is not uploaded for processing. Password-protected or otherwise unreadable files cannot be opened. The output is a separate copy, but numbering does not repair damaged PDFs, alter viewer navigation labels, detect existing headers or footers, or guarantee print-safe placement. Retain the original and inspect the result before replacing any production document.
Worked Examples:
Continue a combined report
A 20-page appendix should continue after page 46, but its cover is PDF page 1. Selecting 2-20 with start number 47 creates 19 stamps numbered 47 through 65. A format such as Appendix page {n} keeps the original PDF page positions separate from the printed sequence.
Outside-edge booklet numbers
Selecting all pages, choosing a right-aligned footer, and enabling Mirror facing pages places odd PDF pages on the right and even PDF pages on the left. The ledger should alternate those positions; centered placement would remain centered even with mirroring enabled.