title: HTML2PDF automatic printing
body: <p>Is there an easy way to get HTML2PDF to automatically open the print dialog window when outputting a pdf to the browser?</p>
  
  <p>I tried setting javascript before output - Header conflict
  I tried after output of the PDF - No influence
  I tried within the PDF like TCPDF suggests (I thought HTML2PDF was built on this library) but it would not allow that due to no JS in PDF support.</p>
  
  <p>Is there any other ways people know of or am I going to have to hack something with iframes or windows and declare print via that method?</p>
  
  <p>Any help appreciated.</p>