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

Suppress window 'This document is trying to print'

gomfp
Registered: Jan 31 2006
Posts: 14
Answered

In using the Print or PrintParams object to suppress the print, progress and cancel dialog boxes, does anyone know if there is a way to also suppress the 'This document is trying to print' box? Thank you ahead of time.

My Product Information:
Acrobat Pro 8.1.7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, to print silently the script calling the "print" function has to be privileged. This is something that can only be done in a local environment. On your own machine, or in an office environment. A document that is distributed to arbitrary users cannot do anything silently. That would be a security problem.

There are two ways to create a privileged script:
1. Place the "print" into a folder level trusted function
2. Certify the PDF, The certifying signature must be on the system where the PDF is used.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

gomfp
Registered: Jan 31 2006
Posts: 14
Thanks Thom. While I do have the script inside a folder level trusted function, I neglected to add app.beginPriv() and app.endPriv() before and after the Print method.