> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dockiln.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Rendering headers and footers

> Put a repeating label and page count on a multi-page HTML document.

## Render a two-page proof

Post this body to [document generation](https://docs.dockiln.io/api-reference/queue-generation.md) on a 1.1 build. The explicit page break makes the second-page footer easy to check.

```json theme={null}
{
  "html": "<h1>Delivery note</h1><p>Warehouse copy</p><section style='break-before:page'><h1>Delivery note</h1><p>Recipient copy</p></section>",
  "print": {
    "paper": "A4",
    "margins": { "top": "20mm", "bottom": "22mm" },
    "headerHtml": "<div style='width:100%;text-align:center;font-size:10px'>Dispatch register</div>",
    "footerHtml": "<div style='width:100%;text-align:center;font-size:10px'>Page {page} of {pages}</div>"
  }
}
```

Open the completed PDF. The footer should read **Page 1 of 2** on the warehouse copy and **Page 2 of 2** on the recipient copy.

## Format a print band

For Chromium PDFs, each HTML band accepts up to 4,000 characters. Use simple elements such as `div`, `span`, `strong` and `br`. Set font size and alignment inline. The body stylesheet does not style the bands. Supported placeholders include `{page}`, `{pages}`, `{date}`, `{title}` and `{url}`. Set `print.startAt` to the first source page that should show the bands, for example 2 to omit them on a cover.

For simpler Chromium jobs, `page.header` and `page.footer` accept plain text. Structured templates use their template page settings. [Reserve vertical space with margins](https://docs.dockiln.io/misc/margins.md) if a band appears clipped.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.