Apache POI Powerpoint
Apache POI provides XSLF API to handle Powerpoint document by using the Java program. It is pure Java implementation of Powerpoint 97-2007 file format.
It helps to read, create or modify document. It provides the following features:
- Extract data (text, pictures, sounds).
- API for creating, reading and modifying document.
Apache POI XSLF Classes
||It handles file and allows reading in and writing out files.
||It is a base class of all records. It also provides the main record generation code, which will build up a tree of records for a file.
||It builds up model entries from the records, and presents a user facing view of the file.
||It allows us to get at the Text of the slide, and at any drawing objects on it.
||It is a list of HSLFTextParagraphs holds all the text in a given area of the Slide.
||It holds a run of text having the same character stylings.
||It uses the model code to allow extraction of text from files.
||It uses the record code to extract all the text from files very fast.
Apache POI Powerpoint Example
The above program will create a powerpoint document Javatpoint.pptx.