This method renders PDF files and draws them into image file list objects, a different concept from Apache POI.
An example is made based on Apache PDFBox.
[1] include Apache PDFBox dependency to the pom.xml.
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.pdfbox/pdfbox -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.8</version>
</dependency>
</dependencies>
[2] Leverage ConvertPdfToImage function of ConvertUtil.
File pdf = new File("D:/20180222/test.pdf");
List<File> imageList = ConvertUtil.convertPdfToImage(pdf); // images files
For example, we used the Apple _ Environmental _ Responsibility_Report_2007.pdf.
This is Original Capture (PDF capture to PNG)
This is Original Capture (PDF capture to PNG)
This is Original Capture (PDF capture to PNG)