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:
Apache Poi Ppt Tutorial
Apache Poi Ppt
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.