title: OfficeJS Extracting all text from every slide of a PowerPoint document
body: <p>We want to extract all text of an opened PowerPoint document from an add-in.</p>
  
  <p>In Word, we do the following:</p>
  
  <pre class="lang-js prettyprint-override"><code>Word.run( context =&gt; {
    var paragraphs = context.document.body.paragraphs;
    context.load(paragraphs, 'text');
    return context.sync().then( () =&gt; {
      var items = paragraphs.items.;
      // Do something with items
    }
  });
  </code></pre>
  
  <p>We're only interested in the text of the PowerPoint document.</p>
  
  <p>We haven't found much documentation on how to use the API for PowerPoint specifically (<a href="https://dev.office.com/docs/add-ins/powerpoint/powerpoint-add-ins" rel="nofollow noreferrer">this</a> is all we found). <a href="https://dev.office.com/code-samples-detail/5807" rel="nofollow noreferrer">This sample project</a> 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.</p>
  
  <p>How might we best approach this?</p>