title: Convert base64 string to PDF in AngularJS
body: <p>I am unable to open a base64 string as pdf in angular application if the file size is more than say 10mb. The browser crashes with a page saying "AW, SNAP". The base64 string i.e. "base64content" already has the metadata at the start and looks something like this:</p>
  
  <pre><code>data:application/pdf;base64,JVBERi0xLjQK...DUKJSVFT0YK
  </code></pre>
  
  <p>I am using below way to open the base64 string as a PDF in new tab:</p>
  
  <pre><code>$window.open(base64content);
  </code></pre>