I am trying to read a ppt file using the poi, and I would like to know how to read the autoshapes which are inserted in the ppt and store them into a different file according to the slide.
I am using the code below:
public void getAutoShapes()
{
for (int i = 0; i < _slides.length; i++)
{
Slide slide = _slides[i];
Shape[] autoshape = slide.getShapes();
for (int j = 0; j < autoshape.length; j++)
{
if(autoshape[j].getShapeName()=="NotPrimitive")
{
autoshape[j].typeName(autoshape[j].getShapeId());
}
}
}
}