Add a header and footer to an existing PDF correctly by entering one optional line for each, setting a font size and edge margin, and checking the downloaded copy for overlap.

The Header Footer PDF workflow applies one optional header line and one optional footer line to every structural page of a local PDF. The browser opens the source, draws the expanded text on each page, and saves a new PDF. The source and generated bytes are not uploaded to Lizely. Source page boxes, page order, existing visible content, and the original page count remain in place, while the new lines become actual PDF content rather than viewer-only overlays.

This approach suits straightforward labels such as confidentiality notices, filenames, revision names, and page numbering. It does not reserve space around existing content, detect a safe margin, or adapt the layout to different sections.

how do i make sure i use header footer add header footer to pdf correctly
How to Use Header Footer PDF to Add PDF Text Correctly

The Three Checks for a Correct Result

A reliable PDF stamp depends on three separate checks. Complete each one before treating the downloaded document as finished.

  • Input check: Confirm that the source is a non-empty PDF within the supported size limit and that it opens without an error.
  • Setup check: Review the exact header and footer text, page-number tokens, requested font size, and edge margin.
  • Output check: Inspect the generated PDF on every page for placement, width, readability, and correct numbering.

The output check is essential because the tool draws inside the existing page box. It cannot move body text, create white space, or automatically avoid logos, diagrams, and crop marks near an edge.

Use the following sequence so the download always represents your latest text and settings.

  1. Choose the local PDF. Select one non-empty PDF no larger than 25 MiB. The source must be a valid, supported PDF; encrypted, damaged, unsupported, oversized, and incorrectly labeled files produce a visible error instead of being processed through a bypass.
  2. Enter the header and footer text. Fill in the header field, the footer field, or both. Each field accepts one line, is trimmed automatically, and is limited to 120 Unicode characters. Images, rich formatting, and multiple lines are outside the tool's supported scope.
  3. Add page-number tokens where needed. Use the exact lowercase token {page} for the current page and {pages} for the total number of structural pages. Other brace text is left unchanged, so use {pages} rather than an unsupported token when you want the document total.
  4. Set the font size and edge margin. Choose a whole-number font size from 6 to 36 points and a whole-number edge margin from 0 to 200 points. The header is positioned below the top edge by the selected margin and requested font size, while the footer begins above the bottom edge by the selected margin.
  5. Select “Add header and footer.” The browser opens the source document, expands the page tokens for each structural page, measures the text with the embedded standard Helvetica font, draws the lines, and saves a new PDF. Processing happens locally in the browser.
  6. Download the current result. The new file retains the source filename base and adds -header-footer.pdf. Changing a setting revokes the previous download, and an older asynchronous job cannot replace a newer file or text choice. Download again after making changes.
  7. Inspect before distribution. Check the header and footer on every page, especially pages with content near an edge. Confirm that the page numbers are correct and that no important source content has been obscured.

A correct run preserves the original page order and count, adds the requested line to every page, and produces a new downloadable PDF. If a line is too wide, its font size may be reduced, so assess the final appearance rather than relying only on the selected settings.

Confirm Page Numbers and Exact Values

The token system is deliberately narrow. The exact lowercase string {page} becomes the current one-based page number, and {pages} becomes the total structural page count from the source document. For example, a footer containing Page {page} of {pages} becomes “Page 2 of 5” on the second page of a five-page document. Unsupported tokens and other brace text remain literal text.

Control or tokenAccepted value or meaningPoint to verify
Source PDFNon-empty PDF, no larger than 25 MiBThe file opens without a visible processing error
Header or footer fieldOptional single line, trimmed, maximum 120 Unicode characters per fieldThe final text contains no unwanted spaces or unsupported content
Font sizeWhole value from 6 to 36 pointsWhether automatic reduction reached the 6-point floor
Edge marginWhole value from 0 to 200 pointsWhether the line overlaps nearby source content
{page}Current one-based structural page numberNumbering starts at one on the first page
{pages}Total structural page countThe same source-document total appears throughout

Numbering always starts at one, and the total reflects the source document before any text is added. There is no starting-number offset or Roman-numeral mode.

Inspect Placement and Print Readiness

Both lines are horizontally centered using their measured text width. Use the following checks on the downloaded file:

  • Review every page: Look at the top and bottom edges even though the same header and footer are applied throughout.
  • Watch for width reduction: A line that exceeds the usable page width has its font size reduced one point at a time, down to the 6-point floor. The text is not stretched, wrapped, or silently removed.
  • Look for collisions: Existing content near an edge can overlap the new line because the tool does not move body content or create extra space.
  • Account for unusual page shapes: Very narrow pages or excessive margins can leave little usable space even after the font reaches its minimum.
  • Confirm the numbering sequence: The current number should change on each structural page, while the total should remain constant.

If the output is crowded or misplaced, use this focused process to fix a PDF that looks wrong after adding a header or footer. Correct the text or settings, create a fresh download, and inspect the replacement rather than distributing an older file.

Apply the Tool Within Its Fixed Rules

Header Footer PDF uses uniform, centered labels. It is designed for repeatable jobs where the same information should appear on every page.

  • There is no cover-page exclusion, separate odd-and-even content, section-specific numbering, or starting-number offset.
  • The tool does not create multi-line headers, images, dynamic dates, separate left-and-right alignment, rich fonts, hyperlinks, Bates numbering, or archival-conformance claims.
  • It does not read the document language or avoid existing logos, graphics, and crop marks.
  • The total page count comes from the source before the added text is applied, and the source page count does not change.

If the document needs a reserved header band, a blank cover, alternating text, multiple sections, or advanced typography, plan that layout in a desktop publishing application rather than relying on this uniform stamping tool.

Handle Errors and Unsupported Characters

Do not try to force a failed file through the workflow. A source file that is encrypted, damaged, unsupported, oversized, incorrectly labeled, empty, or otherwise outside the accepted input conditions produces a visible error. File creation can also fail visibly if the entered text cannot be encoded by the embedded font.

The embedded standard Helvetica font supports a practical Latin character set, but it cannot encode every writing system or emoji. If the entered text cannot be represented, file creation fails visibly rather than silently substituting characters or claiming success with missing glyphs.

For multilingual branding, custom fonts, or precise typography, use a desktop publishing application that can embed the required licensed font. For straightforward centered labels and predictable page numbering, keep the configuration within the supported controls and verify the downloaded result page by page.

If you're weighing options, PDF to Text on Chromebook: Browser-Based Steps covers this in detail.