{page} and {total} anywhere.
Professional PDF Document Page Numbering
Alternating Margins
Fit double-sided printed booklets, research prints, or publications cleanly. Automatically swaps left margins to right and right to left on alternating pages.
Flexible Typography
Select standard postscript compatible core fonts like Helvetica, Times Roman, and Courier. Supports adjustable weights, italic formats, sizes, and colors.
Cover Skip & Start Offsets
Exclude cover pages or front summaries from numbering. Easily start numbering from any custom physical page index and count with customizable start values.
Explore More InstantConvert Tools
PDF Coordinate Translation & Page Vector Overlays
Adding digital vector page numbers, custom typography headers, or alternating mirrored footers to standard PDF binaries requires an accurate understanding of the PostScript coordinate space. A standard PDF page is structured as a two-dimensional grid where dimensions are measured in DPI-neutral points (1 point = 1/72nd of an inch). Crucially, the origin coordinate $(0,0)$ resides at the bottom-left corner of the page, rather than the top-left layout used in web HTML browser canvas coordinates.
Our InstantConvert Page Numbering Engine calculates the coordinates for text injection using standard linear equations inside browser threads. Given standard page parameters width $W$ and height $H$, margins are mapped as follows:
- Bottom positions (Footers): Horizontal coordinate $X$ varies by alignment, and vertical coordinate $Y$ is placed at exactly the vertical padding margin: $Y = Padding_{y}$.
- Top positions (Headers): $X$ maps similarly, and $Y$ is placed at the top bounds minus margins and font scale heights: $Y = H - Padding_{y} - FontSize$.
- Mirrored offsets (Book Alternating): If mirror layout is active and page number is even, left and right bounds are swapped dynamically: $X_{even\_left} = W - Padding_{x} - TextWidth$.
To align text perfectly, our engine pre-calculates the vector text width of characters inside local memory using standard font dictionaries. This ensures that center-aligned headers and mirrored footer corners are calculated with zero pixel clipping. Modified pages are compiled back into binary PDF streams in under 20ms client-side.