On the apache PDFBox web sit,http://pdfbox.apache.org/2.0/migration.html ,the PDF Rendering example.
ImageIOUtil.writeImage(bim, pdfFilename + "-" + (pageCounter++) + ".png", 300);
the ImageIOUtil cann't find.help me,Thanks
This is in the pdfbox-tools package, as mentioned on that web page:
ImageIOUtil has been moved into the org.apache.pdfbox.tools.imageio package.
See pdfbox-tools on the download page.
For maven:
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-tools</artifactId>
<version>2.0.13</version>
</dependency>
(the version may be higher at the time you read this)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With