DataExtraction - Apache POI PowerPoint Slides Example

Q

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

✍: FYIcenter.com

A

DataExtraction example in the Apache POI package is created by Yegor Kozlov. It demonstrates how to create basic paragraph and text formatting on a PowerPoint slide in *.pptx format.

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

Here is the command to run DataExtraction to extract text from a PowerPoint slide file text.pptx which was generated by the Tutorial2 example.

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.DataExtraction text.pptx
   
Pagesize: java.awt.Dimension[width=720,height=540]

Paragraph Formatting
Paragraph  properties apply to all text residing within the corresponding paragraph.

Run Formatting
Run level formatting is the most granular property level and allows for the 
specifying of all low level text properties. The text run is what all paragraphs 
are derived from and thus specifying various properties per run will allow for 
a diversely formatted text paragraph.

 

Apache POI Examples for PowerPoint Slides

⇒⇒FAQ for Apache POI (Poor Obfuscation Implementation)

2017-02-14, 393👍, 0💬