title: Trying to hide first footer/header on PDF generated with Puppeteer
body: <p>Im new using nodejs functions and also puppeteer. Previously I was using wkhtmltopdf but currently its options are very poor.</p>
  
  <p>So, my idea was generating a pdf from a html with a first cover page (an image with full A4 width/height ), since the footer is generated from the index.js, theres no way to hide it on the FIRST page of the PDF.</p>
  
  <pre><code>//Imports
  const puppeteer = require('puppeteer');
  //Open browser
  async function startBrowser() {
      const browser = await puppeteer.launch({headless: true, args:['--no-sandbox']});
      const page = await browser.newPage();
      return {browser, page};
  }
  //Close browser
  async function closeBrowser(browser) {
      return browser.close();
  }
  //Html to pdf
  async function html2pdf(url) {
      const {browser, page} = await startBrowser();
      await page.goto(url, {waitUntil: 'networkidle2'});
      await page.emulateMedia('screen');
      //Options
      await page.pdf({
          printBackground: true,
          path: 'result.pdf',
          displayHeaderFooter: true,
          footerTemplate: '&lt;div style="width:100%;text-align:right;position:relative;top:10px;right:10px;"&gt;&lt;img width="60px" src="data:data:image/..."'
          margin : {top: '0px',right: '0px',bottom: '40px',left: '0px' },
          scale: 1,
          landscape: false,
          format: 'A4',
          pageRanges: ""
      });
  }
  //Exec
  (async () =&gt; {
      await html2pdf('file:///loc/node_pdfs/givenhtml.html');
      process.exit(1);
  })();
  </code></pre>
  
  <p>My question is, is there any way to locate the first footer and hide it from the index fuction?</p>
  
  <p>Thanks!</p>