title: Not able to capture image while generating pdf using puppeteer API
body: <p>Node- v8.11.1  Headless Chrome<br>
  Im trying to generate PDF but somehow the background image is not captured in the PDF.
  Below is the code. Any help is appreciated</p>
  
  <pre><code>const puppeteer = require('puppeteer'); 
  (async () =&gt; {
  const browser = await puppeteer.launch({headless: true});
  const page = await browser.newPage();
  await page.goto('http://54.201.139.151/', {waitUntil : 'networkidle0'});
  await page.pdf({path: 'hn40.pdf', printBackground: true, width: '1024px' , height: '768px'});
  await browser.close();
  })();
  </code></pre>