Each day our software generates thousands of barcoded labels as PDF documents which are delivered through web browsers. The documents include embedded JavaScript that requests the PDF document be printed on the default printer.
Adobe Reader 8.1.2 has a new "feature" that pops a dialog box with the message "This document is trying to print. Do you want to allow this?". Previously, the labels would just print without interruption. This dialog is going to quickly become a significant impediment to our workflow if we can't disable it.
Is there any way, either through configuring Adobe Reader, or modifying the JavaScript we generate, to have the labels print as they did before without the dialog box?
The default is full.
Non-interactive printing can only be executed during batch, console, and menu events. Printing is made non-interactive by setting bUI to false when calling the Document object print method or by setting the interactive property to silent, for example,
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
Outside of batch, console, and menu events, the values of bUI and of interactive are ignored, and a print dialog box will always be presented.
Try this JavaScript:
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.printerName = "Adobe PDF";
this.print(pp);
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.