I’ve been struggling for a while to get PDFs to print correctly using Adobe Reader from the command line, so here’s how to do it from a batch file:
:: This is a DOS-Style path to the AcroRd32.exe, in this case Adobe Reader 7.0
SET PATHTOADOBE=C:\PROGRA~1\ADOBE\ACROBA~2.0\Reader\AcroRd32.exe
:: This adds /h to tell Adobe Reader to minimize, and /p tells it to print the document to the default printer and close right after.
SET PRINTCMD=C:\PROGRA~1\ADOBE\ACROBA~2.0\Reader\AcroRd32.exe /h /p
:: This will first launch Adobe Reader in a new process. NOTE: whatever directory you are in at this point,
:: Adobe Reader will only look for files here unless you supply full path file names.
call start /MIN %PATHTOADOBE% /h
:: ...
:: do stuff...
:: ...
:: Here is the actual call to print the PDF. Because Adobe Reader is already launched in its own process, the batch file will continue executing immediately after the command is invoked.
%PRINTCMD% "C:\myDocument.pdf"
:: Batch file will continue executing other commands
Just print that joint to a TIFF image, yo.
Need prints in a large, batch-style quanities? Call your Account Manager Dan Carroll at OnSite E-Discovery. http://www.onsite3.com