title: converting PDF as Image with PhantomJs
body: <p>Im working with PhantomJs to convert webpages as images, and that works fine, here is my code to do that</p>
  
  <pre><code>phantomjs.exe rasterize.js http://myurl.com/mypage/ out_put_image.png
  </code></pre>
  
  <p>This works very well, but when I load an URL locating any PDF, this is unable to take screenshot of that PDF and giving error as "Unable to load the address!"
  my code goes like</p>
  
  <pre><code>phantomjs.exe rasterize.js http://myurl/myfolder/mypdf.pdf pdf_image.png
  </code></pre>
  
  <p>Phantom is unable to do this :(</p>
  
  <p>Is there any way to achieve this? or with any other JS/PHP frameworks to do this?
  Any help would be great.</p>