PowerPoint Web Add-In: get data within document

2019-06-10 23:42发布

问题:

Is it possible to get all data in PPT document?

Something like getSelectedDataAsync method but for all data whether selected or not.

I want to verify the content(Text) of the PPT document.

回答1:

The PPT JS API is not yet as rich as the Excel and Word ones, and today there is no API to do this directly. There is an intricate workaround where you need to get the entire file (pptx) (using the getFileAsync method) send it to service that uses the OOXML SDK to open it and grab the content you need.