Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing in the background

Status
Not open for further replies.

MikePalm

Programmer
Feb 6, 2002
34
US
I have a web based system that uses Adobe Acrobat Reader 6.0 to open documents, print the contents and close the documents. The user is printing a series of contract documents.

I would like to merge data with a document using FDF and have it print without opening the document in Reader. I have several documents that the user wants to print. Data has to be merged with each document before it is printed.

Currently I am handling it, but the form opens, the document prints, and then it closes and opens the next document and so on. The screen just flashes the documet and prints it.

belose is the code i use to automatically print the document
Code:
// this logic used for automatic printing

var h = this.getField("print_now");
if (h.value == "Y"){
    var pp = this.getPrintParams();
    pp.interactive= pp.constants.interactionLevel.silent;
   this.print(pp);
   getURL(f.value); 
}



This works ok, but I would like to do the same thing without having the screen flash.
 
You cannot print, except from either the browser, or as you're doing it, silently from Acrobat's JavaScript DOM. But you only have access to that once the PDF loads. The PDF can only load in Reader.

There is not a way to "stream" a PDF directly and silently, to a user's printer.

Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top