We want to extract all shape of an opened PowerPoint document from an add-in.
We haven't found much documentation on how to use the API for PowerPoint specifically (this is all we found). We did able to get the selected shape data from the slide with .getSelectedShapes() but we need get shapes from entire presentation.
How might we best approach this?
You can use the following sequence of calls to get all shapes for a slide:
For example, the following code shows how to delete shapes:
See Work with shapes using the PowerPoint JavaScript API for more information.