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

George Sexton edited comment on PDFBOX-3482 at 9/19/16 10:04 PM:
-----------------------------------------------------------------

I'm not getting any log output. My Command line is:

java -Dlog4j.configuration=file:/home/gsexton/log4j.properties   -classpath 
/srv/tomcat/lib/MHS.jar:./pdfbox-2.0.4-20160919.203849-20.jar:./pdfbox-tools-2.0.4-20160919.204355-11.jar:./xmpbox-2.0.4-20160919.203622-20.jar:./fontbox-2.0.4-20160919.203515-20.jar:/usr/local/apache-tomcat-7.0.70/lib/commons-logging-1.2.jar:.
  com.mhsoftware.graphics.ImageHelper cc.pdf cc.png

My log4j.properties is:
{quote}
log4j.rootLogger=DEBUG, stdout

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p [%c{2}]: %m%n
{quote}

The exception I'm getting is:

com.mhsoftware.graphics.ImageHelper.getPDFThumbnail(/home/gsexton/cc.pdf, 
/home/gsexton/cc.png)
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:631)
        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:1267)
        at 
org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1201)
        at 
org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1165)
        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:1267)
        at 
org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1201)
        at 
org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1165)
        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)
        at com.mhsoftware.graphics.ImageHelper.main(ImageHelper.java:638)

If you can give me a hint why log4j isn't creating any output, I'll try again.


was (Author: gsex...@mhsoftware.com):
I'm not getting any log output. My Command line is:

java -Dlog4j.configuration=file:/home/gsexton/log4j.properties   -classpath 
/srv/tomcat/lib/MHS.jar:./pdfbox-2.0.4-20160919.203849-20.jar:./pdfbox-tools-2.0.4-20160919.204355-11.jar:./xmpbox-2.0.4-20160919.203622-20.jar:./fontbox-2.0.4-20160919.203515-20.jar:/usr/local/apache-tomcat-7.0.70/lib/commons-logging-1.2.jar:.
  com.mhsoftware.graphics.ImageHelper cc.pdf cc.png

My log4j.properties is:

log4j.rootLogger=DEBUG, stdout

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p [%c{2}]: %m%n

The exception I'm getting is:

com.mhsoftware.graphics.ImageHelper.getPDFThumbnail(/home/gsexton/cc.pdf, 
/home/gsexton/cc.png)
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:631)
        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:1267)
        at 
org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1201)
        at 
org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1165)
        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:1267)
        at 
org.apache.pdfbox.rendering.PageDrawer$TransparencyGroup.<init>(PageDrawer.java:1201)
        at 
org.apache.pdfbox.rendering.PageDrawer.showTransparencyGroup(PageDrawer.java:1165)
        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)
        at com.mhsoftware.graphics.ImageHelper.main(ImageHelper.java:638)

If you can give me a hint why log4j isn't creating any output, I'll try again.

> 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
>             Fix For: 2.0.4, 2.1.0
>
>         Attachments: 2015-Lambs-to-Leaders-posterv04.pdf
>
>
> 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
(v6.3.4#6332)

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

Reply via email to