Customize your PDFs by incorporating headers and footers using the headerTemplate and footerTemplate options available for PDFs. See PDF options for all available options.

Example

It is recommended to specify a font and color for your header/footer, the default is white and small.

We are adding a margin to prevent the header from overlapping the PDFs content.

Output