/ Search

Search Epistola

Find documentation, integration guides, tour steps, blog posts and pages.

DocsIntegrationsTourBlogPage
↑↓↵esc

Add headers, footers, and page numbers

Set up content that repeats on every page, choose where pages break, and check the full PDF.

Before you begin

You need an editable template and Content Author access. Start with a theme that sets the paper size and margins. Keep a short example and a long example that produces several pages.

Add a running header

  1. Open the variant in the editor and choose Page Header in Blocks. The editor places it at the start of the document. Check its place in the Structure panel.
  2. Set its Height, for example 40pt, and add a Text or Image block inside it.
  3. Preview a multipage document. Check that the header is fully visible and does not overlap body content.

For a different header on the cover, add two Page Headers at the start of the document. Put the taller cover header first. Put the compact running header after it.

Their order decides their role. Preview the first page and the later pages separately.

Add page numbers

  1. Add a Page Footer block and set Height, for example 40pt.
  2. Add a Text block inside the footer.
  3. Write Page , insert sys.pages.current through {{, write of, then insert sys.pages.total. The expression dialog offers these page fields inside the footer.
  4. Set the text alignment as desired. Use Hide on first page when a cover should have no footer.
  5. Preview a document with several pages. The current number should change and the total should match the PDF page count.

Use the system expressions as chips. If you type sys.pages.current as plain text, you get no page number.

Control page breaks

Use Page Flow settings for the ordinary rules on how content spreads over pages. Keep short related content together when that reads better. A group taller than a page cannot fit on one page.

If a new page must start, for example before an appendix, add a Page Break block. Place it between the two sections in the Structure panel. Do not create page breaks with blank lines.

Check the result

Preview the shortest and the longest example. Check headers, footers, long tables, the final sign-off, and the last page.

Another theme or font can change how lines wrap. So repeat these checks when you change the styling. Releases you publish in Epistola 2.0 use new spacing rules. Spacing and page breaks can therefore differ from a release published in 1.x.

If the PDF has blank pages or overlapping content, see Layout and resource problems. Finish with Review a template.

More on this topic

Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →