[ https://issues.apache.org/jira/browse/PDFBOX-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15088916#comment-15088916 ]
Johan Walter commented on PDFBOX-3185: -------------------------------------- I've missed the JBIG2 decoder. Now it works. Thanks. > 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 > Fix For: 2.0.0 > > 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