title: react-pdf failing to render base64 PDF data, interpreting as hex string
body: <p>I'm trying to use the react-pdf library to display a base64 encoded PDF file. The B64 data is accurate, as it loads in an iframe as such:</p>
  
  <pre><code> &lt;iframe
     className={css.previewIframe}
     src={`data:application/pdf;base64,${
       this.props.encodedPdf
     }`}
   /&gt;
  </code></pre>
  
  <p>However, if I insert the data into a react-pdf document as such, I get an error:</p>
  
  <pre><code>&lt;Document file={this.props.encodedPdf} /&gt;
  </code></pre>
  
  <p>The Document is rendered with an error message <code>Failed to load PDF file.</code>, and the console logs the following error: <code>InvalidPDFException {name: "InvalidPDFException", message: "Invalid PDF structure"}</code></p>
  
  <p>I also get a lot of warnings like the following: <code>Warning: Ignoring invalid character "109" in hex string</code></p>
  
  <p><a href="https://i.stack.imgur.com/DI2b0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DI2b0.png" alt="sti"></a></p>
  
  <p>The <a href="https://github.com/wojtekmaj/react-pdf" rel="nofollow noreferrer">documentation</a> clearly states that the file prop can be B64 encoded content. Any idea on what the issue could be? Here is the B64 data if needed:</p>
  
  <pre><code>JVBERi0xLjMKMSAwIG9iago8PAovS2lkcyBbIDMgMCBSIF0KL1R5cGUgL1BhZ2VzCi9Db3VudCAxCj4+CmVuZG9iagoyIDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlQREYyKQo+PgplbmRvYmoKMyAwIG9iago8PAovQ29udGVudHMgNSAwIFIKL1JvdGF0ZSAwCi9UeXBlIC9QYWdlCi9SZXNvdXJjZXMgPDwKL1Byb2NTZXQgWyAvUERGIC9UZXh0IF0KPj4KL0Nyb3BCb3ggWyAwIDAgNjEyIDc5MiBdCi9QYXJlbnQgMSAwIFIKL01lZGlhQm94IFsgMCAwIDYxMiA3OTIgXQo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKPj4KZW5kb2JqCjUgMCBvYmoKPDwKL0xlbmd0aCAxMAovRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0KSIkCCDAAAAAAAQplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAwOSAwMDAwMCBuIAowMDAwMDAwMDY4IDAwMDAwIG4gCjAwMDAwMDAxMDggMDAwMDAgbiAKMDAwMDAwMDI3MyAwMDAwMCBuIAowMDAwMDAwMzIyIDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNgovUm9vdCA0IDAgUgovSW5mbyAyIDAgUgo+PgpzdGFydHhyZWYKNDAzCiUlRU9GCg==
  </code></pre>
  
  <p>If I add <code>data:application/pdf;base64,</code> to the beginning of the string, there are no errors, but also nothing is rendered.</p>