Bug 68352 - PPTX convert to PNG image, throw error
Summary: PPTX convert to PNG image, throw error
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: unspecified
Hardware: PC All
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-17 13:35 UTC by NewmannHu
Modified: 2023-12-17 13:37 UTC (History)
0 users



Attachments
this is the test pptx file (341.81 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-12-17 13:35 UTC, NewmannHu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NewmannHu 2023-12-17 13:35:16 UTC
Created attachment 39470 [details]
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) ~[?:?]