title: embed javascript to a jasper report pdf?
body: <p>I want to embed a javascript function into a pdf file generated by jasper.
  it comes to my mind because I want to make the pdf file auto open printing dialog.
  after reading <a href="https://stackoverflow.com/questions/687675/can-a-pdf-files-print-dialog-be-opened-with-javascript">this question</a> and tried <a href="http://www.fpdf.org/en/script/script36.php" rel="nofollow noreferrer">this example</a> I want to do the same.</p>
  
  <p>but I use iReport designer to create my pdf templates and then export using struts actions, any idea how to embed javascript with ireport?</p>
  
  <p>thanks</p>