title: How to read pdf stream in angularjs
body: <p>I got the following PDF stream from a server: <img src="https://i.stack.imgur.com/BDAt9.png" alt="PDF STREAM"></p>
  
  <p>How can this stream be read in AngularJS? I tried to open this as a PDF file in a new window by using the following code:</p>
  
  <pre><code>.success(function(data) {
     window.open("data:application/pdf," + escape(data));
   });
  </code></pre>
  
  <p>But I'm unable to see the content in opened window.</p>