https://bz.apache.org/bugzilla/show_bug.cgi?id=68352
Bug ID: 68352
Summary: PPTX convert to PNG image, throw error
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 39470
--> https://bz.apache.org/bugzilla/attachment.cgi?id=39470&action=edit
this is the test pptx file
error message:
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
~[?:?]
at java.awt.image.BufferedImage.<init>(BufferedImage.java:333) ~[?:?]
at
org.apache.poi.sl.draw.DrawTexturePaint.getImage(DrawTexturePaint.java:151)
~[poi-5.2.5.jar:5.2.5]
at
org.apache.poi.sl.draw.DrawTexturePaint.createContext(DrawTexturePaint.java:90)
~[poi-5.2.5.jar:5.2.5]
at sun.java2d.pipe.AlphaPaintPipe.startSequence(AlphaPaintPipe.java:84)
~[?:?]
at sun.java2d.pipe.AAShapePipe.renderTiles(AAShapePipe.java:163) ~[?:?]
at sun.java2d.pipe.AAShapePipe.renderPath(AAShapePipe.java:149) ~[?:?]
at sun.java2d.pipe.AAShapePipe.fill(AAShapePipe.java:82) ~[?:?]
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:2528) ~[?:?]
at
org.apache.poi.sl.draw.DrawPaint.fillPaintWorkaround(DrawPaint.java:814)
~[poi-5.2.5.jar:5.2.5]
at
org.apache.poi.sl.draw.DrawSimpleShape.fillArea(DrawSimpleShape.java:138)
~[poi-5.2.5.jar:5.2.5]
at
org.apache.poi.sl.draw.DrawSimpleShape.lambda$draw$0(DrawSimpleShape.java:85)
~[poi-5.2.5.jar:5.2.5]
at
org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:103)
~[poi-5.2.5.jar:5.2.5]
at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
~[poi-5.2.5.jar:5.2.5]
at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
~[poi-5.2.5.jar:5.2.5]
at org.apache.poi.xslf.usermodel.XSLFSlide.draw(XSLFSlide.java:393)
~[poi-ooxml-5.2.5.jar:5.2.5]
at
com_beiyelin_impl_SlideServices_extract_SlideFile.run(com_beiyelin_impl_SlideServices_extract_SlideFile:111)
~[?:?]
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]