Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
PPT2PNG - Apache POI PowerPoint Slides Example
What is PPT2PNG example in the Apache POI package? How to run PPT2PNG example?
✍: FYIcenter.com
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.
⇐ Graphics2DDemo - Apache POI PowerPoint Slides Example
2017-02-08, ∼2397🔥, 0💬
Popular Posts:
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
maven-settings-builder-3 .8.6.jaris the JAR file for Apache Maven 3.8.6 Settings Builder module. Apa...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...