We want to extract all text of an opened PowerPoint document from an add-in.
In Word, we do the following:
Word.run( context => {
var paragraphs = context.document.body.paragraphs;
context.load(paragraphs, 'text');
return context.sync().then( () => {
var items = paragraphs.items.;
// Do something with items
}
});
We're only interested in the text of the PowerPoint document.
We haven't found much documentation on how to use the API for PowerPoint specifically (this is all we found). This sample project comes close to what we want in that it extracts data from the document but we were hoping to do it without loading the compressed file and parsing the text from the file chunks.
How might we best approach this?