Javascript window open pdf stream

Sign up or log in to customize your list. Join Stack Overflow to learn, share knowledge, and javascript window open pdf stream your career.

I am trying to open up this string in a new window as a PDF file. I want it to recognize that this is a PDF file. How are you “writing” this string?