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

Can I get the print dialog window to open automatically?

NCC
Registered: Nov 25 2011
Posts: 3

I have a pdf on a webpage. When a visitor clicks and opens the pdf I want the print dialog window to open automatically, so that the visitor only have to click "Print". Can this be done? If so, how?

My Product Information:
Acrobat Pro 10.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can add a document level script like:

This.print();

You could add a non-printing button.


George Kaiser

NCC
Registered: Nov 25 2011
Posts: 3
Im a beginner when it comes to scripts in Acrobat. Where do I add the script?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
If it's from a button, right-click it using the Button tool or Select Object tool, select Properties, go to Actions, add a MouseUp action "Execute JavaScript" and then paste the code provided by George into the window that opens.
In the same properties window you can also set the button's appearance to be: "Visible, but doesn't print".

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

NCC
Registered: Nov 25 2011
Posts: 3
try67 wrote:
If it's from a button, right-click it using the Button tool or Select Object tool, select Properties, go to Actions, add a MouseUp action "Execute JavaScript" and then paste the code provided by George into the window that opens.
In the same properties window you can also set the button's appearance to be: "Visible, but doesn't print".
Thank you! :)