I have a setup where I am displaying a pdf file in an iFrame tag in a jsp page. I would like to add a button to the web page which will print the contents of the pdf file displayed in the iframe. I tried to use the following code snippet in my javascript function :
window.frames.myIFrame.focus();
window.frames.myIFrame.print();
This code does work in Firefox 1.0 and I am able to print the pdf document without any problem. However when i use IE7 to print the document, it prints the html page with an emplty iframe. Is there a way in which we make this work for IE7? Is it possible to invoke the print function of the Acrobat plugin from within the JavaScript?... Please Help... Thank You.
Good Luck,
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script