pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (Jira)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-3482) RasterFormatException: (y + height) is outside raster creating Thumbnail
Date Fri, 13 Sep 2019 18:05:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929411#comment-16929411
] 

Tilman Hausherr commented on PDFBOX-3482:
-----------------------------------------

I was able to reproduce the effect with the attached code. After that I searched in the JDK
bug tracker I think that JDK-8076170 has the best explanation what happened. Sadly they don't
want to fix this bug in jdk8, so the many hours of work to reproduce it without PDFBox were
wasted. As a workaround, you could disable anti-aliasing by setting the appropriate rendering
hint in PDFRenderer. The bug is fixed in Amazon Corretto 11.

> RasterFormatException: (y + height) is outside raster creating Thumbnail
> ------------------------------------------------------------------------
>
>                 Key: PDFBOX-3482
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3482
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.2
>         Environment: OpenSuse Linux, Apache Tomcat 7.0.70, Java Oracle JDK 1.8.0_U102
>            Reporter: George Sexton
>            Priority: Minor
>         Attachments: 2015-Lambs-to-Leaders-posterv04.pdf, PDFBox3482.java, PDFBox3482_2.java,
log4j.txt
>
>
> Attempting to extract a thumbnail image from the attached PDF using pdfbox-2.0.3-20160902.161822-193.jar
throws the exception:
> java.awt.image.RasterFormatException: (y + height) is outside raster
> 	at sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInterleavedRaster.java:470)
> 	at sun.awt.image.IntegerInterleavedRaster.createChild(IntegerInterleavedRaster.java:514)
> 	at sun.java2d.pipe.GeneralCompositePipe.renderPathTile(GeneralCompositePipe.java:106)
> 	at sun.java2d.pipe.AAShapePipe.renderTiles(AAShapePipe.java:201)
> 	at sun.java2d.pipe.AAShapePipe.renderPath(AAShapePipe.java:159)
> 	at sun.java2d.pipe.AAShapePipe.fill(AAShapePipe.java:68)
> 	at sun.java2d.pipe.PixelToParallelogramConverter.fill(PixelToParallelogramConverter.java:164)
> 	at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:160)
> 	at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2525)
> 	at org.apache.pdfbox.rendering.PageDrawer.fillPath(PageDrawer.java:626)
> 	at org.apache.pdfbox.contentstream.operator.graphics.FillNonZeroRule.process(FillNonZeroRule.java:36)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processTransparencyGroup(PDFStreamEngine.java:213)
> 	at org.apache.pdfbox.rendering.PageDrawer.access$1000(PageDrawer.java:89)
> 	at org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1229)
> 	at org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1163)
> 	at org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1127)
> 	at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:66)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processTransparencyGroup(PDFStreamEngine.java:213)
> 	at org.apache.pdfbox.rendering.PageDrawer.access$1000(PageDrawer.java:89)
> 	at org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1229)
> 	at org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1163)
> 	at org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1127)
> 	at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:66)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
> 	at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94)
> 	at com.mhsoftware.graphics.ImageHelper.getPDFThumbnail(ImageHelper.java:583)



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message