Login using the username and password you created for AcrobatUsers.com.
Note: This is not the same as your Adobe ID.
Benefits of Free Membership:
Find out what AcrobatUsers.com is all about
You don't have to be a member to look at any content on the site. Increase your expertise with our helpful tutorials, videos, forums, and sample PDFs.
Like what you see? Take the next step and become a member. Register now to get discounts, attend eSeminars, ask questions and more.
Get the most out of your membership. Post in the forums, create your profile, submit to the gallery, attend a user group meeting. Log In now.
Given a PDF form with a document level script (shown below) that opens the print window when the form first opens, is there anyway to possibly intercept or close the print window programmatically using a folder level script?
document level script in question:
pp = getPrintParams(); fv = pp.constants.flagValues; pp.flags |= (fv.suppressCenter | fv.suppressRotate | fv.setPageSize); this.print(pp);
Thank you ahead of time
My Product Information:
Acrobat Pro 8.1 / Windows
Offline
I guess that you could set bUI to false (1st parameter of print()
bUI: (optional) If true (the default), will cause a UI to be presented to the user to obtain printing information and confirm the action.
and bSilent to true (4th param of print()
bSilent: (optional) If true, suppresses the cancel dialog box while the document is printing. The default is false.
pp (in your ex.) being the last param (9th of print())
Offline
I probably should have been more explicit in my initial post. Using the pp object won't work in this particular instance simply because the document level script that resides within the form cannot be directly accessed until the form is first open which in this case is a day late and a dollar short. The form in question denotes one of many generic PDF forms containing (2) UPS labels that my client receives from his merchant for shipping merchandise. Apparently someone thought it would be beneficial to implement a document level script that opens the print window whenever these forms are first opened to facilitate printing the labels. In this particular case, the positioning of the labels on the form do not accommodate my client's thermal printer. To address this issue, I added a tool button via a folder level script that rotates, splits, and crops the images ready for print to accommodate my client's printer. As such, my client doesn't need much less want a print window to popup each and every time he goes to open one of these PDF forms he receives from his merchant containing the UPS labels. Hence, if there was a method I could implement from inside a folder level script to close the print window when the form first opens, all would be resolved. Unfortunately, from everything I've researched thus far, I don't think this is possible. Hence my initial post to make sure that I haven't overlooked anything in attempting to resolve this matter.
Last edited by gomfp (2010-01-29 04:44:17)
Offline
Upon further investigation, I found out that this cannot be done.
Offline