title: printJS - why requested URL not found error when printing PDF file?
body: <p>trying to use printJS to print a PDF file, from the browser, direct to a network printer.  But getting error: "The requested URL /docs/pricelist.pdf was not found on this server"</p>
  
  <p>but the file is there. I am able to use an anchor link to download it.</p>
  
  <p>and, I am loading printJS correctly since I can use it to print an HTML element.</p>
  
  <p>how to correctly use printJS to print a PDF from the browser?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
  
    &lt;link rel="stylesheet" 
        href="https://printjs-4de6.kxcdn.com/print.min.css"&gt;
    &lt;script src="https://printjs-4de6.kxcdn.com/print.min.js"&gt;&lt;/script&gt;
  
    &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body id="body" &gt;
  
    &lt;a href="docs/pricelist.pdf"&gt;pricelist pdf&lt;/a&gt;
  
    &lt;button type="button" onclick="printJS('docs/pricelist.pdf')"&gt;
      Print PDF
    &lt;/button&gt;
  
  &lt;button type="button" onclick="printJS('body', 'html')"&gt;
    Print HTML
  &lt;/button&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>