title: Generate a pdf thumbnail (open source/free)
body: <p>Looking at other posts for this could not find an adequate solution that for my needs. Trying to just get the first page of a pdf document as a thumbnail. This is to be run as a server application so would not want to write out a pdf document to file to then call a third application that reads the pdf to generate the image on disk. </p>
  
  <pre><code>doc = new PDFdocument("some.pdf");
  page = doc.page(1);
  Image image = page.image;
  </code></pre>
  
  <p>Thanks.</p>