[ https://issues.apache.org/jira/browse/PDFBOX-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-3185. ----------------------------------- Resolution: Not A Problem Fix Version/s: (was: 2.0.0) > PDFRenderer generates blank image > ---------------------------------- > > Key: PDFBOX-3185 > URL: https://issues.apache.org/jira/browse/PDFBOX-3185 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.0 > Environment: Windows 10 > java version "1.8.0_60" > Java(TM) SE Runtime Environment (build 1.8.0_60-b27) > Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) > Reporter: Johan Walter > Labels: jbig2 > Attachments: a.pdf, a.png > > > Run this: > {code:java} > @Test > public void testRendering() throws IOException { > File pdfFile = new File("a.pdf"); > Assert.assertTrue(pdfFile.canRead()); > PDDocument document = PDDocument.load(pdfFile); > Assert.assertEquals(2, document.getNumberOfPages()); > PDFRenderer pdfRenderer = new PDFRenderer(document); > BufferedImage firstPageImage = pdfRenderer.renderImage(0, 1, > ImageType.RGB); > File pngFile = new File("a.png"); > ImageIO.write(firstPageImage, "png", pngFile); > } > {code} > The generated image is blank. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org