For the complete documentation index, see llms.txt. This page is also available as Markdown.

generating different headers on different pages in pdf templates

Instructions on how to display different headers on each page of PDF documents

(blue star) Instructions

1

Enter the headers that you want for the main template in the “header” and "header on remaining pages" section. Ensure that “Use first page header for all pages” is unchecked.

2

Create another PDF template that can be named anything but for this example it will be called pdfheader (this should be a PDF template, not a component).

3

Keep the body section of the pdfheader template blank but add what you want to show for the header on the following pages of the main template in pdfheader's "header on remaining pages" section.

If you want this to be blank you can add this HTML into that section's source code:

4

You can call the new header when needed at the start of its corresponding page in the main template like this:

This should overwrite the current header and replace it with the new one.

You will need to create a different PDF template for each header that needs to be called.

Last updated

Was this helpful?