title: base64 embeded PDF files won't render in Chrome
body: <p>Some PDF files won't render in Chrome browser but will render fine in Firefox. All files render fine in all browsers if emeded directly.</p>
  
  <pre><code>&lt;object id="content-view" :data="content_view.base64" type="application/pdf"&gt;&lt;/object&gt;
  </code></pre>
  
  <p>The confusing part is that the problem is only for some files and not all. Files are stored in a folder that is not public and that's why they are served as base64 for the user to view.</p>
  
  <p><a href="https://i.stack.imgur.com/Ep1jk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ep1jk.png" alt="screenshot"></a></p>
  
  <p>I tested the problematic files by using online base64 decoders and I get the same result. Rendered in FF, not rendered in Chrome.</p>
  
  <p>I cannot share any of the PDF files. They are all from the same source, scanned from the same device, PDF version 1.4, 4 pages.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>using iframe, embed and object (same result)</li>
  <li>unblocking <em>Insecure content</em> in Chrome site settings</li>
  <li>opening and re-saving in Adobe Acrobat</li>
  <li>using online PDF analyzers to see if any problems present (none found)</li>
  </ul>