>
Add custom headers, footers, page numbers, document titles, and dates to any PDF online for free with our PDF Header & Footer Editor. Interactive live preview with custom margins, font styling, and page range filtering directly inside client browser RAM.
Upload your PDF document into the header and footer layout editor.
Add custom running headers, footers, page numbering templates, and date stamps.
Click Apply Headers & Footers to render text bands across pages and download.
Position custom text in Left, Center, or Right alignment zones for both headers and footers independently.
Fine-tune Top Offset, Bottom Offset, and Side Margin in 72 DPI PostScript point units for perfect page alignment.
All preview rendering and document stream modifications execute inside client browser memory. Zero files leave your device.
PDF document coordinates originate from the bottom-left corner of each page in PostScript point units (72 points = 1 inch). Header text Y-coordinates are calculated as $y_{header} = H_{page} - ext{TopOffset} - ext{FontSize}$, while footer text Y-coordinates equal $y_{footer} = ext{BottomOffset}$.
For center-aligned header and footer text zones, pdf-lib calculates exact text bounding widths using fontRef.widthOfTextAtSize(text, fontSize) and offsets X-coordinates to $(W_{page} - w_{text}) / 2$.
Dynamic template tokens ([page], [pages], [filename], [date]) are parsed per page in client browser memory before drawing text operators into the document's content stream arrays.