title: Print PDF at ClientSide Browser without Opening PDF
body: <p>I wish to print a PDF at client side when a user clicks a particular link. However, the PDF should not open and print should be fired. It may not be silent printing, a OS popup asking the printer to use can come. My PDF Reader shall be Adobe Reader.
  I found a lot of links to try to  however found they are dependent on Browser being used. I tried this code piece to successfully print in Chrome but i think chrome has its own PDF Renderer.</p>
  
  <pre><code>&lt;script&gt;function iprint(ptarget){
          ptarget.focus();
          ptarget.print();
           } 
  &lt;/script&gt;&lt;body&gt;
  &lt;iframe name="theiframe" id="theiframe" width="500" height="200" src="http://192.168.108.105:8081/PDfTest/Excel.pdf" style="display:none"&gt;
  &lt;/iframe&gt;
       &lt;input type="button" value="print iframe" onclick="iprint(theiframe);" /&gt;
  &lt;/body&gt; 
  </code></pre>
  
  <p>Also tried this code piece , but this opens the PDF and then prints:</p>
  
  <pre><code>&lt;html&gt;
  &lt;script language="javascript"&gt;
  timerID = setTimeout("exPDF.print();", 1000);
  &lt;/script&gt;
  &lt;body&gt;
  &lt;object id="exPDF" type="application/pdf" data="111.pdf" width="100%" height="500"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Would appreciate any help.</p>