Skip to main content
Set pdf.displayHeaderFooter to true, then pass HTML in pdf.headerHtml and pdf.footerHtml. Base64-encode each HTML fragment when sending JSON directly. The Node.js SDK accepts the HTML as text. See PDF options.

Example

Set the font size and color explicitly in your header and footer HTML.
Use pdf.margin.top and pdf.margin.bottom to leave room for the header and footer.

Output

Open the header and footer example PDF