title: NodeJS with Puppeteer: how to set the margins of each pages (or scale all of them to fit the magins)?
body: <p>I tried to just use below setting but turn out the header and footer positions will be changed. Please advise.</p>
  
  <pre><code>await page.pdf({
      path: FILENAME,
      format: 'A4',
      margin: {
          top: "0px",
          right: "0px",
          bottom: "0px",
          left: "0px"
      },
      printBackground: true // required for photos otherwise blank
  });
  </code></pre>