title: How to convert a pdf to an image?
body: <p>Using pdfbox displays an error:</p>
  
  <pre><code>import java.awt
  import javax`
  </code></pre>
  
  <p>Based on the following code:</p>
  
  <pre><code>imageType = BufferedImage.TYPE_INT_ARGB; //need to specifies java.awt
  String[] formats = ImageIO.getReaderFormatNames(); //need to specifies javax
  </code></pre>