Hello All,
I am looking for some help with a project that is quickly becoming VERY frustrating. I am trying to create a java script that when applied to a PDF will have it silent print to a specific printer. What I hope for is when the PDF is opened it silently prints and then Adobe Acrobat closes.
I have created a folder-level java script to silently print and made it trusted so that no prompts come up.
sPrint = app.trustedFunction(
function(){
app.beginPriv();
this.print({bUI:false, bSilent:true, bShrinkToFit:false});
app.endPriv();
}
)
How can I modify this script to print to a specific printer name instead of just the default?
Also, I would like Acrobat to close/quit the entire program when complete, not just PDF. I tried:
app.execMenuItem("Quit");
... From what I read that is not allowed. Is there any other alternative?
I would like the user to be able to access the PDF and then have it print and them return to the application that they are working in without any intervention on their part.
Do I need to consider a different PDF viewer to accomplish my goal?
HELP!
To minimize I thought I could access the menu fuction, but no luck:
app.execMenuItem("MinimizeAll");
Any suggestions?