Tutorial4 - Apache POI PowerPoint Slides Example

Q

What is Tutorial4 example in the Apache POI package? How to run Tutorial4 example?

✍: FYIcenter.com

A

Tutorial4 example in the Apache POI package is created by Yegor Kozlov. It demonstrates how to create a table on a PowerPoint slide in *.pptx format.

Tutorial4 example uses the OpenXML Slide Layout Format (XSLF) API, which supports PowerPoint slides in *.pptx format only.

Here is the command to run Tutorial4 to generate PowerPoint slide file in *.pptx file format compatible with Microsoft PowerPoint 2007 version.

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-ooxml-3.15.jar;
         C:\local\poi-3.15\ooxml-lib\xmlbeans-2.6.0.jar;
         C:\local\poi-3.15\lib\commons-collections4-4.1.jar;
         C:\local\poi-3.15\poi-ooxml-schemas-3.15.jar 
   org.apache.poi.xslf.usermodel.Tutorial4

If you open the output file, table.pptx, in PowerPoint, you will see a slide with a table:
Apache POI PowerPoint Slide Example - Tutorial4

 

Apache POI Examples for PowerPoint Slides

⇒⇒FAQ for Apache POI (Poor Obfuscation Implementation)

2017-02-14, 306👍, 0💬