PPT2PNG - Apache POI PowerPoint Slides Example
What is PPT2PNG example in the Apache POI package? How to run PPT2PNG example?
PPT2PNG example in the Apache POI package is created by Yegor Kozlov. It demonstrates how you can use HSLF to convert each slide (in *.ppt format) into a PNG image.
PPT2PNG example uses the Horrible Slide Layout Format (HSLF) API, which supports PowerPoint slides in *.ppt format only.
Here is the command to run PPT2PNG to convert PowerPoint slide file in *.ppt file format compatible with Microsoft PowerPoint 97 version into *.PNG image files.
C:\fyicenter>c:\local\jdk-1.8.0\bin\java -cp .;C:\local\poi-3.15\poi-examples-3.15.jar; C:\local\poi-3.15\poi-3.15.jar; C:\local\poi-3.15\poi-scratchpad-3.15.jar org.apache.poi.hslf.examples.PPT2PNG -scale 1 hslf-graphics.ppt Rendering slide 1
If you open the output file, hslf-graphics-1.png, in a preview tool,
you will see an image of the PowerPoint slide:
Note that the conversion result is actually not good. The bar chart is not showing correctly on the *.PNG image.
2017-02-08, 1519👍, 0💬
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
What Is Apache XMLBeans-2.6.0.zip file? Apache XMLBeans-2.6.0.zip file is the distribution package Z...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...