Apache POI PPT Reading Shapes in Apache POI PPT

How to read shapes in Apache POI PPT?

You can get the count of the number of shapes which are used in a presentation, using method getShapeName() of the XSLFShape class. Below is the program for reading the shapes from a presentation:

Save the above Java code as ReadingShapes.java and then compile and execute it from the command prompt as shown below:

It will compile and execute to generate below output.

Newly added slide with the various shapes will appear as shown below:


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Apache POI PPT Topics