Where a printed page number actually lives

Published 2026-11-02 · Last reviewed 2026-11-06

A page number looks like the simplest thing in a document, and it is the one thing a reader uses to talk about the document at all: "turn to page 9" only works if page 9 says page 9. Underneath that simple appearance sits a choice with real consequences - whether the number is part of the page or a separate object laid over it - and a piece of geometry that decides where the number lands once the visible window has been trimmed.

This page is about those two things. It is not a tutorial for a particular reader, because the answer does not depend on the reader: a number drawn into the page behaves the same way in every program that opens the file, and a number stored beside the page does not.

A number drawn on the page, or pinned over it

A PDF page has a content stream: a short program of drawing instructions, the same kind a printer would understand. Writing text into that stream means the number is the page, in the way the body text is the page. It prints without any extra cooperation, it can be selected and copied, it shows up in a search for "Page 9", and it appears in a text extraction - which is what a PDF-to-Word converter reads. That is the route this site's numbering tool takes: it appends a text-showing instruction to each page it numbers.

The other route is an annotation: an object stored in the page's /Annots array, with its own appearance and its own flags. Annotations are the right tool for things that belong to a reviewer rather than to the document - a sticky note, a highlight, a form field. For a page number they are a trap, because the flags decide whether they print, readers are allowed to hide them, and an editor is allowed to delete them without touching a character of the page. A number that can be switched off is not a page number; it is a sticker.

There is a third, even quieter option: the document's own page labels. A PDF can carry a table saying "these pages are numbered i, ii, iii and those are 1, 2, 3", which is how front matter gets roman numerals. That structure is what a reader's "page 3 of 12" counter follows. It is worth knowing about, because it explains a confusion people report constantly: a file numbered from 7 still shows "page 1 of 12" in the reader's toolbar, because the toolbar is reading the file's structure and the page is showing the number printed on it. This tool leaves the label table untouched rather than rewriting it.

The crop box is a window, and the number moves with it

Every PDF page carries more than one rectangle. The media box is the sheet; the crop box is the part of that sheet a reader is shown. Trimming a margin means shrinking the crop box, not deleting anything: the instructions outside the new window are still in the file, still searchable, still extractable, and another editor can widen the box again and bring them back. Nothing gets smaller either, because nothing was removed.

That has one consequence the layout has to respect. A number placed at a fixed distance from the media box would end up outside the visible window as soon as the bottom margin was trimmed - a number nobody can see is worse than no number. So the position is measured from the visible box: on US Letter with half an inch off the bottom, the crop box becomes 612 x 756 pt starting at y = 36, and a bottom-left number sits at x = 24, y = 60 instead of the 24 it would occupy on the untrimmed sheet. Twenty-four points is a third of an inch, which is the margin every number is drawn with.

The floor on all of this is 18 points: if the margins typed in would leave a strip thinner than a quarter of an inch, the job refuses and names the page rather than producing a sliver with a number on it. A crop that leaves nothing is not a design decision, it is a typo.

Why the total is the last number printed

The "of" in "Page 7 of 12" is the part people get wrong. The tempting definition is the number of pages in the file, and it is wrong the moment a document is split: a six-page insert numbered from 7 in a twelve-page report has six pages, and a label reading "Page 7 of 6" is nonsense. The honest definition is the last number printed, which is the starting number plus the number of pages that received one, minus one - here 7 + 6 - 1 = 12, so the first page reads Page 7 of 12 and the last reads Page 12 of 12, whichever file they happen to be in.

The same rule is what makes a cover page work. Number a file from page two and the cover stays blank while the rest carries a total that counts only the pages that were numbered - not a document length nobody holding the printout can verify.

Where these numbers come from

What this guide does not cover

It does not tell you how to redact a document, because cropping is not redaction: the bytes outside the new window stay in the file, and something that must disappear needs the content actually removed. It also does not cover form fields, digital signatures or how a signature survives an edit - those have their own rules, and changing a page after signing is a different conversation. And it says nothing about imposing several pages on one sheet, which is a printing setting rather than something stored in the file: the number the file carries is the number the imposition layout then rearranges.

Number a document in the Add Page Numbers to PDF tool, or put the pages in a different order first with Reorder PDF Pages and Split PDF.

Explanations only - not legal or records-management advice. Read the full disclaimer.