Batch print PDF's via OLE automation, DDE command line parameters, or Apple Events
Issue
How do I batch print PDF files?
Solution
1. Using OLE Automation, you can call the C and Visual Basic methods, AVDoc.PrintPages, AVDoc.PrintPagesEx, AVDoc.PrintPagesSilent, AVDoc.PrintPagesSilentEx. You can specify first page, last page, shrink to fit, and other options. Please refer to the Acrobat Interapplication Communication documentation at
http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true for more information.
2. DDE command line parameters
The DDE command line parameters for Acrobat and Reader are as follows. These are unsupported but have worked for some developers.
AcroRd32.exe /p filename - executes the Reader and prints a file
AcroRd32.exe /t path printername drivername portname - Initiates
Acrobat Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.
The four parameters of the /t option evaluate to path,printername, drivername, and portname (all strings).
printername - The name of your printer.
drivername - Your printer driver’s name. Whatever appears in the Driver Used box when you view your printer’s properties.
portname - The printer's port. portname cannot contain any "/" characters; if it does, output is routed to the default port for that printer.
Note: If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the command lines.
3. Using Apple Events on the Mac, you can call the Print command. Please refer to the Acrobat Interapplication Communication documentation at
http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true for more details.