title: Specifying a base or default font with PDFBox
body: <p>Is there a system property or other parameter that can be passed to PDFBox when attempting to convert from a PDF document into an Image? I am utilizing the provided PDF2Image class like so:</p>
  
  <pre><code>String[] args = new String[]{"-imageType", "jpg", "myfile.pdf"};
  org.apache.pdfbox.PDFToImage.main(args);
  </code></pre>
  
  <p>It works great on Windows and fails with this warning on Ubuntu:</p>
  
  <pre><code>[org.apache.pdfbox.util.PDFStreamEngine] java.lang.NullPointerException java.lang.NullPointerException at org.apache.pdfbox.pdmodel.font.PDType1Font.getawtFont(PDType1Font.java:261)
  </code></pre>
  
  <p>I assume from my research that this is a problem with a "missing" font, but I've found very little help so far using google and the projects website.</p>
  
  <p>I've tried both versions 1.7.1 and 1.8.2 of PDFBox.</p>
  
  <p>Similar question here: <a href="https://stackoverflow.com/questions/16665300/setting-ttf-for-pdf-to-image-on-pdfbox">setting ttf for PDF to Image on PDFbox</a></p>