Hi!
I'm trying to use the headerTemplate and footerTemplate option, like in the puppeteer documentation, but nothing seems to appear in my print. Am I missing something?
const headerTemplate =
Header 1; const footerTemplate =
Footer;
const buffer = await page.pdf({ path: filePath || null, format: argv.format, landscape: argv.landscape, printBackground: argv.background, margin: { top: argv.marginTop, right: argv.marginRight, bottom: argv.marginBottom, left: argv.marginLeft }, displayHeaderFooter: true, headerTemplate: headerTemplate, footerTemplate: footerTemplate, pageRanges: pageRangeArray[index] });