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

Is there any event that will trigger before print?

fanchunrong
Registered: Mar 4 2008
Posts: 37
Answered

I want to put some code in a event that will be triggered before the document is printed. Which event should I use? Any suggestions and help are greatly appreaciated!

Thanks!

My Product Information:
Acrobat Pro 8.0, Windows
St Peterburger
Registered: Apr 27 2009
Posts: 15
Use
Advanced ->
Document Processing ->
Set Document Actions ->
Document Will Print
and put the js code there.
fanchunrong
Registered: Mar 4 2008
Posts: 37
thank you! Is there anyway to stop the print process if needed? For example, if one field on my form equals to some value, I want to stop the print process. How can I do that?

Thank you!
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Only the user can 'cancel' the print on the display window.

George Kaiser

fanchunrong
Registered: Mar 4 2008
Posts: 37
if that's case, I may add a print button on my form. But how do I disable the print funtion from File menu? I want user to use my print button so that I can control the process. Thanks!