This discussion assumes that you are familiar with the basic principles of controlling printing with ScriptX.
The Adobe Reader Add-in for Internet Explorer can be used to print PDF documents - for printing of multiple documents script will be required to manage a queue, load the documents and print them.
Alternatively, ScriptX printing provides the helper method BatchPrintPDF(url). This method performs the following steps:
The background thread:
Inspects the extension of the downloaded file:
The following sample is based upon the sample provided in the Adobe Acrobat 8.0 SDK. Use view source to examine how the code works.
ScriptX does not implement printing of Acrobat files itself - it enlists the help of the Adobe Acrobat installed on the machine to perform the actual print. ScriptX uses the DDE (Dynamic Data Exchange) support provided by Acrobat Reader; ScriptX connects to a running instance of Acrobat Reader, or requests an instance to start and then sends the documented commands to print a document. Once a print is completed, Acrobat is asked to shutdown.
On some systems, the loading of Acrobat to perform the printing may result in unacceptable screen 'flashing' as Acrobat is loaded and unloaded. A technique to reduce this is to load an Acrobat document so that Acrobat is already loaded - the loaded instance will be used to perform the print.