misc

Printing PDF to Multiple Printers

September 9, 2020 pdf, printers

Printing PDF to Multiple Printers

There was a request to be able to print a PDF document to several printers with minimal work. I have worked on projects that utilized c# that received input from other systems to work behind the scenes with no user intervention. This task was slightly different as the PDF was manually being created. After some research in the Acrobat Reader documentation, it appears that the AcroRd32.exe executable accepts parameters to specify that you would like a document to be printed.

It was decided that utilizing a batch script would be the easiest route. The batch script accepts the location of a PDF file and passes the file into a command that specifies the filename and printer. Below code is an example of the batch file.

SET file=[Path To PDF File]

"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t %file% "[PrinterName]1"

"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t %file% "[PrinterName]2"