Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.27
-
None
Description
Using the attached PDF as the pdf, the resulting png has a black ground using the code below. Opening this PDF in reader or chrome etc., the background is white.
PDDocument pdDocument = PDDocument.load(pdf, MemoryUsageSetting.setupMixed(1024 * 1024 * 56)); try { BufferedImage image = new PDFRenderer(pdDocument).renderImageWithDPI(0, 300, ImageType.RGB); ImageIO.write(image, "png", new File("bad-black-background.png")); } finally { pdDocument.close(); }
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-1934 converttoimage error and part of the pdf is not rendered
- Closed