-
Type:
Bug
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.9, 3.0.0 PDFBox
-
Component/s: None
-
Environment:Windows 8.1, jdk1.8.0_51, jre1.8.0_51
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) { }
- duplicates
-
PDFBOX-3802 Images wrong color
-
- Closed
-