PDF header & footer
Add repeating text at the top or bottom of every page.
Updated
Add your files
How to add a header and footer to a PDF
- 1
Add the PDF; one file per run.
- 2
Type the Header text, the Footer text, or both. Either may contain {page}, {total} and {date}, which become the page number, the page count and the date of the day you run it. Set the Font size, the Colour and the Margin from the edge.
- 3
Press Add header/footer and download the copy, named with "-stamped" added.
- Use Add page numbers to PDF when all you need is the number, placed left, centre or right, on the pages you list.
- Use Watermark PDF when the text should run across the page as a large diagonal stamp rather than sit at the edge.
Placeholders and what they become
{page} becomes the number of the page it is printed on, counted from 1 in document order, and {total} the number of pages in the file, so "Page {page} of {total}" reads "Page 3 of 12" on the third of twelve pages. {date} is the date of the day you run the tool. Any other text is printed as typed, and the same line goes on every page. Leave both fields blank and the run stops with a message instead of saving an unchanged file.
How the lines are drawn
The text is drawn into the page content at the Font size you set, 6 to 24 points, in the Colour you pick, dark grey by default. The header is centred with its baseline Margin points below the top edge. The footer is centred with its baseline the font size lower than the Margin, so with the defaults of 24 and 10 points it sits 14 points above the bottom edge. Positions follow the page as it is displayed, so a page stored sideways with a rotation still gets an upright header at its visible top.
The rest of the document is saved as it is: bookmarks, links and form fields stay, text stays selectable, and nothing the page already prints is removed, so pick a margin that keeps the new line clear of existing text.
Fonts and characters
Latin text is written with the built-in Helvetica; Greek or Cyrillic text switches to an embedded Liberation Sans. Characters outside those scripts, such as Arabic, Devanagari or Chinese, cannot be written: each becomes "?" and the result says how many. A password-protected PDF asks for its password and the stamped copy is saved without one.
Questions about PDF header & footer
Can the header go on some pages only?
No. The text is drawn on every page of the file, and there is no page list. To stamp only some pages, take them out with Extract PDF pages, stamp that file and merge it back; Add page numbers takes a page list but prints numbers only.
What date does {date} print?
The date of the day the tool runs, written the way your browser language writes dates, such as 15/10/2026 or 10/15/2026, and the same on every page. The placeholder cannot take another date, but you can type the date you want as plain text instead.
Can I put the text on the left or right?
No. Header and footer are always centred across the page. Add page numbers places a bare number at the left, centre or right.
Advertisement
Related to PDF header & footer
- Add page numbers to PDFNumber the pages, with control over position, format and starting value.
- Watermark PDFStamp a text watermark across the pages: centred, tiled, or along the top or bottom.
More in PDF Tools
All 24 in PDF Tools- Edit PDF metadataSet title, author, subject and keywords, or blank the standard document properties.
- Flatten PDFBake form fields into the page so they can no longer be edited. Rasterise the pages to lock comments and other annotations as well.
- Repair PDFAttempt to recover a PDF that other readers refuse to open.