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

Pdf Printing

ejurgensen
Registered: Mar 26 2007
Posts: 2

I have a pdf in an iframe of an html page. I would like to be able to cause the pdf to print with a "command" from the container of the iframe. In other words, I would like to be able to mimic the clicking of the print icon on the Adobe toolbar. How can I accomplish this? Thanks.

My Product Information:
Reader 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
As far as I know there isn't a direct method for doing this like calling the "print()" function in an HTML script. Which is odd because printing works from the print menu item. There is however a way to send a message to the PDF, and then code in the PDF could call the print function. This is a much longer and unreliable solution though. There is an example of this here.
[url=http://www.windjack.com/resources/howto.php]http://www.windjack.com/resources/howto.php[/url]

You might try searching the Acorbat scripting forum at the Adobe User to User forums. I know this has been asked before.

[url=http://www.adobeforums.com/cgi-bin/webx?13@@.3bbedaa6]http://www.adobeforums.com/cgi-bin/webx?13@@.3bbedaa6[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script