↕

PDF Header & Footer

Add page-aware header or footer text

Use {page} and {pages} as page number placeholders.

No file selected.

PDF Header & Footer — what it does

Add header or footer text to every page of a PDF, with placeholders that expand to the current page number and the total page count, plus control over position, alignment and font size. It is how a document gains "Page 3 of 12", a confidentiality line or a document reference after the fact.

Worked example

Page-of-total numbering added to a 10-page manual, then a confidentiality line in the top right; the last two rows show a non-Latin failure and the empty-text fallback.

InputText / positionOutput
manual-10p.pdf (10 pages)Page {page} of {pages} — bottom, centre, 11 ptmanual-10p-header-footer.pdf — 'Page 1 of 10' to 'Page 10 of 10', 24 pt above the bottom edge
manual-10p.pdfConfidential – Acme Ltd – draft {page}/{pages} — top, right, 9 ptsame name; text ends 32 pt from the right edge, 9 + 24 pt below the top
manual-10p.pdf機密文件 第 {page} 頁Error: WinAnsi cannot encode "機" (0x6a5f) — no file
manual-10p.pdf(text box left empty)falls back to {page} / {pages}: '1 / 10' to '10 / 10'

The output is always named <file>-header-footer.pdf and the text is drawn in a muted blue-grey with no background.

When this tool helps

  • Adding page-of-total numbering to a document that was exported without it.
  • Stamping a confidentiality or draft notice across every page of a circulated report.
  • Applying a document reference or version marker to a whole file.

How to use it

  1. Choose the PDF file.
  2. Enter the header or footer text, using the page placeholders.
  3. Choose position, alignment and font size.
  4. Process and download the result.

Accuracy, limits, and good practice

  • Page-of-total numbering is the strongest reason to use this: a printed bundle with it is immediately checkable for missing pages.
  • Check where existing content sits — a footer added over an existing one produces overlapping text that looks worse than no footer.
  • Keep the text short. A long footer wraps or overruns the page width and undermines the tidiness you added it for.

Frequently asked questions

How do I show the total page count?

Use the pages placeholder alongside the page placeholder, producing text such as Page 3 of 12.

Can different pages have different text?

The same text applies throughout, with the placeholders varying per page. Split the document first for genuinely different sections.

Will it overlap existing content?

It can. Check pages with dense footers, and adjust the position or font size if the result collides.

Which characters can the text contain?

Only what the built-in Helvetica font covers (WinAnsi): Latin letters with Western European accents, digits, common punctuation, en and em dashes and curly quotes. Chinese, Japanese, Korean, Greek or Cyrillic text stops the run with the 'WinAnsi cannot encode' error and nothing is downloaded.

Where exactly is the text placed?

24 pt from the top or bottom edge, 32 pt from the left or right edge for left/right alignment, and centred on the measured text width for centre. Font size is limited to 6–48 pt and the same text goes on every page.

Related tools on this site

Everything above runs inside this page. PDF Header & Footer needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

PDF 頁眉與頁尾能做什麼

為 PDF 每一頁加上頁首或頁尾文字,可用佔位符自動帶入目前頁碼與總頁數,位置、對齊與字級也能調整。文件事後要補上「第 3 頁,共 12 頁」、機密聲明或文件編號,靠的就是它。

實際範例

一份 10 頁手冊加上「第 x 頁,共 y 頁」的頁碼,再加上右上角的機密聲明;最後兩列示範非拉丁字元的失敗情況與空白文字的替代值。

輸入文字/位置輸出
manual-10p.pdf(10 頁)Page {page} of {pages} — 底部、置中、11 ptmanual-10p-header-footer.pdf — 從 Page 1 of 10 到 Page 10 of 10,距底邊 24 pt
manual-10p.pdfConfidential – Acme Ltd – draft {page}/{pages} — 頂部、靠右、9 pt檔名相同;文字結尾距右邊 32 pt,距頂邊 9 + 24 pt
manual-10p.pdf機密文件 第 {page} 頁錯誤:WinAnsi cannot encode "機" (0x6a5f) — 不產生檔案
manual-10p.pdf(文字欄位留空)改用 {page} / {pages}:從 1 / 10 到 10 / 10

輸出檔名固定為「檔名-header-footer.pdf」,文字以淡藍灰色繪製,沒有背景。

什麼時候用得上

  • 為匯出時沒有頁碼的文件補上「第幾頁/共幾頁」。
  • 在流通報告的每一頁蓋上機密或草稿標示。
  • 為整份檔案加上文件編號或版本標記。

使用步驟

  1. 選擇 PDF 檔案。
  2. 輸入頁首或頁尾文字,並使用頁碼佔位符。
  3. 選擇位置、對齊方式與字級。
  4. 執行處理並下載結果。

精確度、限制與實務建議

  • 「第幾頁/共幾頁」是使用它最強的理由:印出來的卷宗一眼就能查出有沒有缺頁。
  • 請確認既有內容的位置——在原本就有頁尾的地方再加一層,文字疊在一起比沒有還糟。
  • 文字盡量精簡。過長的頁尾會換行或超出頁寬,反而破壞你想要的整齊感。

常見問題

怎麼顯示總頁數?

把總頁數佔位符與頁碼佔位符一起使用,就能得到「第 3 頁,共 12 頁」這樣的文字。

不同頁面可以有不同文字嗎?

整份套用同一段文字,只有佔位符逐頁變化。真正不同的段落請先拆分文件。

會跟既有內容重疊嗎?

有可能。請檢查頁尾密集的頁面,若發生碰撞就調整位置或字級。

文字可以用哪些字元?

只限內建 Helvetica 字型涵蓋的 WinAnsi 範圍:帶西歐重音的拉丁字母、數字、常用標點、長短破折號與彎引號。中文、日文、韓文、希臘文或西里爾文字會停在 WinAnsi cannot encode 的錯誤,不會下載任何檔案。

文字確切放在哪裡?

距頂邊或底邊 24 pt;靠左或靠右對齊時距左右邊 32 pt;置中時依量得的文字寬度置中。字級限制在 6–48 pt,每一頁都會放同樣的文字。

本站相關工具

以上步驟全部在這個頁面內完成,PDF 頁眉與頁尾 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。