Open PDF from server in a browser
<p>Hi I've got follow json:</p>

<pre><code>let help = {
    url: 'file://myServer/folder1/myFile.pdf'
};
</code></pre>

<p>With this function I try to open the file in a browser:</p>

<pre><code>openPdf() {
    window.open(help.url);
}
</code></pre>

<p>This is my html:</p>

<pre><code>&lt;button ng-click="ctrl.openPdf()"&gt;Open PDF&lt;/button&gt;
</code></pre>

<p>Now, when I click on the button, a new tab opens in the browser without the pdf file. There isn't also my url from the json. It opens a empty page - <code>about:blank</code>. But when I copy the url from the json and paste it again in the browser, it opens the file correctly. But this also works only, when I put <code>file://</code> before the url (without this, or with <code>http://</code> etc. it also doesn't work) - <strong>Browser</strong> = <code>Google Chrome</code>. The confusing thing is: It works on <code>Internet Explorer</code>! When I open the url (with <code>file://</code>), than it shows me the pdf in a new browser tab. Is there perhaps a pdf plugin for browser, that isn't installed on chrome? Any ideas what could be wrong here? Thanks</p>