title: Does Node@6 support puppeteer api to generate PDF
body: <p>I have successfully generated PDF using puppeteer api with latest version of Node i.e Node@8.  Here is the latest code. But the requirement is to generate PDF using puppeteer api with Node@6.  </p>
  
  <pre><code>`const express = require('express');
  const app = express();
  const puppeteer = require('puppeteer');
  (async () =&gt; {
    const browser = await puppeteer.launch();
    const page = await browser.newPage();
    await page.goto('http://www.google.com', {waitUntil: 'networkidle2'});
    await page.pdf({path: 'hn8.pdf', width: '1600px' , height: '800px'});
    await browser.close();
  })();
  module.exports = app;` 
  </code></pre>
  
  <p>This code has await() and async which was introduced in Node7. I have searched few blogs and it says that the same can be done in Node6 as well. Any help is appreciated</p>