Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.0.0
-
None
-
Windows 8.1, jdk1.8.0_51, jre1.8.0_51
Description
pdftoimage.java
PDDocument document = null; File file = new File("F:\\Projects\\java\\pdfbox\\complete.pdf"); document = PDDocument.load( file ); try { // retrieve image BufferedImage bi = new PDFRenderer(document).renderImageWithDPI( 0 , 150, ImageType.RGB ); File outputfile = new File("saved0.png"); ImageIO.write(bi, "png", outputfile); } catch (IOException e) { }
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-3802 Images wrong color
- Closed