title: Opening PDF String in new window with javascript
body: <p>I have a formatted PDF string that looks like </p>
  
  <pre><code>%PDF-1.73 0 obj&lt;&lt;&lt; /Type /Group /S /Transparency /CS /DeviceRGB &gt;&gt; /Resources 2 0 R/Contents 4 0 R&gt;&gt; endobj4 0 obj&lt;&gt; streamx��R=o�0��+��=|vL�R���l�-��ځ,���Ge�JK����{���Y5�����Z˯k�vf�a��`G֢ۢ��Asf�z�ͼ��`%��aI#�!;�t���GD?!���&lt;�����B�b��
  
  ...
  
  00000 n 0000000703 00000 n 0000000820 00000 n 0000000926 00000 n 0000001206 00000 n 0000001649 00000 n trailer &lt;&lt; /Size 11 /Root 10 0 R /Info 9 0 R &gt;&gt;startxref2015%%EOF
  </code></pre>
  
  <p>I am trying to open up this string in a new window as a PDF file.  Whenever I use window.open() and write the string to the new tab it thinks that the text should be the contents of an HTML document.  I want it to recognize that this is a PDF file.</p>
  
  <p>Any help is much appreciated</p>