title: React display pdf from IPFS
body: <p>I want to display a PDF file that is stored using IPFS.</p>
  
  <p>I'm using the React PDF package to display the file.</p>
  
  <pre><code>&lt;div&gt;
    &lt;Document
      file = {"https://ipfs.io/ipfs/" + this.state.IPFSlink}
      onLoadSuccess={this.onDocumentLoadSuccess}
    &gt;
      &lt;Page pageNumber={pageNumber} /&gt;
    &lt;/Document&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However, when I run the page and get the IPFSlink (Which is correct) I get the error message </p>
  
  <blockquote>
    <p>Failed to load PDF file.</p>
  </blockquote>
  
  <p>and this error in the console</p>
  
  <blockquote>
    <p>index.js:1446 Error: Setting up fake worker failed: "Cannot read property 'WorkerMessageHandler' of undefined".
        at pdf.js:11664</p>
  </blockquote>
  
  <p>Has anyone experience trying to do this?</p>