title: How do i take a screenshot of a PDF using phantomjs and node?
body: <p>I am new to phantomjs and node, so basically if i use the following code:</p>
  
  <pre><code>var webpage = require('webpage').create();
  
  webpage.open('https://www.google.com/', function() {
        webpage.render('pdflala.png');
        phantom.exit();
  });
  </code></pre>
  
  <p>I am able to get a screenshot of the webpage , but is there anyway that i can get a screenshot of a PDF using phantomjs ?</p>
  
  <p>The below code if used to get a screenshot of a PDF will show a blank image.</p>
  
  <pre><code>var webpage = require('webpage').create();
  
  webpage.open('https://www.link-assistant.com/pdf/SEO_in_2018.pdf', function() {
        webpage.render('pdflala.png');
        phantom.exit();
  });
  </code></pre>
  
  <p>How do i take a screenshot of a PDF using phantomjs and node ?</p>