These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Printing a pdf from a web page in IE7

pdgude
Registered: Jan 18 2007
Posts: 2

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.

My Product Information:
Reader 7
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This isn't really an Acrobat JavaScript question, although it is about the interaction between HTML and Acrobat. You might get an answer to the question on the regular Adobe Acrobat forums. However I think that you are better off asking on the IE forums, where someone is more likely to have run into this problem,

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