You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Chico Qi <qi...@gmail.com> on 2021/09/03 08:39:31 UTC
ppt failed to draw
Hi team,
Now I'm converting a ppt file to pdf but an issue came across at
org.apache.poi.sl.draw.geom.ArcToCommand.execute(ArcToCommand.java:104).
Also, the error is the same as the one PPTX2PNG got.
I've tried a few versions from 4.0.1, 4.1.1, 5.0.1 and the latest nightly build.
v4.0.1 is able to convert most of the slides without the above issue
but doesn't show WMF pictures.
From v4.1.1, the above error happens until the current nightly build.
I dive deeper a bit and it's broken over here, Point2D pt =
path.getCurrentPoint(); as pt is null.
The ppt file is downloaded from
https://www.arl.noaa.gov/wp_arl/wp-content/uploads/documents/reports/niagara_overview.ppt
Many thanks.
Chico
[poi-bin-5.0.1-SNAPSHOT] java -cp
"poi-5.0.1-SNAPSHOT.jar:poi-ooxml-5.0.1-SNAPSHOT.jar:poi-ooxml-schemas-5.0.1-SNAPSHOT.jar:poi-scratchpad-5.0.1-SNAPSHOT.jar:lib/*:ooxml-lib/*:auxiliary/*"
org.apache.poi.xslf.util.PPTX2PNG -format png -fixside long -scale
1000 -charset GBK ~/Downloads/niagara_overview.ppt
ERROR StatusLogger Log4j2 could not find a logging implementation.
Please add log4j-core to the classpath. Using SimpleLogger to log to
the console...
Processing /Users/chico/Downloads/niagara_overview.ppt
Rendering slide 1: Atmospheric Mercury:
Emissions, Transport/Fate,
Source-Receptor Relationships
ERROR HSLFPictureShape no picture found for our BSE offset 0
ERROR HSLFPictureShape no picture found for our BSE offset 0
Rendering slide 2: Mercury in the Environment
ERROR HSLFPictureShape no picture found for our BSE offset 11970571
Rendering slide 3:
Rendering slide 4:
ERROR HSLFPictureShape no picture found for our BSE offset 12886919
Rendering slide 5:
ERROR HSLFPictureShape no picture found for our BSE offset 6750979
Rendering slide 6:
ERROR HSLFPictureShape no picture found for our BSE offset 10642498
Rendering slide 7: Different patterns of anthropogenic mercury emissions
ERROR HSLFPictureShape no picture found for our BSE offset 11266650
ERROR HSLFPictureShape no picture found for our BSE offset 11264377
ERROR HSLFPictureShape no picture found for our BSE offset 11268944
Rendering slide 8: Some Current Emissions Inventory Challenges
Rendering slide 9:
ERROR HSLFPictureShape no picture found for our BSE offset 12899600
Rendering slide 10
ERROR HSLFPictureShape no picture found for our BSE offset 12891728
Rendering slide 11:
Rendering slide 12:
ERROR HSLFPictureShape no picture found for our BSE offset 13785268
ERROR HSLFPictureShape no picture found for our BSE offset 13795819
ERROR HSLFPictureShape no picture found for our BSE offset 13795819
Exception in thread "main" java.lang.NullPointerException
at org.apache.poi.sl.draw.geom.ArcToCommand.execute(ArcToCommand.java:104)
at org.apache.poi.sl.draw.geom.Path.getPath(Path.java:95)
at org.apache.poi.sl.draw.DrawSimpleShape.computeOutlines(DrawSimpleShape.java:418)
at org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:74)
at org.apache.poi.sl.draw.DrawGroupShape.draw(DrawGroupShape.java:60)
at org.apache.poi.sl.draw.DrawGroupShape.draw(DrawGroupShape.java:60)
at org.apache.poi.sl.draw.DrawGroupShape.draw(DrawGroupShape.java:60)
at org.apache.poi.sl.draw.DrawGroupShape.draw(DrawGroupShape.java:60)
at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
at org.apache.poi.hslf.usermodel.HSLFSlide.draw(HSLFSlide.java:473)
at org.apache.poi.xslf.util.PPTHandler.draw(PPTHandler.java:139)
at org.apache.poi.xslf.util.PPTX2PNG.processFile(PPTX2PNG.java:337)
at org.apache.poi.xslf.util.PPTX2PNG.main(PPTX2PNG.java:97)
ReplyForward
<https://drive.google.com/u/0/settings/storage?hl=en-GB&utm_medium=web&utm_source=gmail&utm_campaign=storage_meter&utm_content=storage_normal>
<https://www.google.com/intl/en-GB/policies/terms/>
<https://www.google.com/intl/en-GB/policies/privacy/>
<https://www.google.com/gmail/about/policy/>