Print a pdf from the command line

I needed to programatically print a pdf from the command line. This was easier than I expected it to be. Simply use acrobat reader to spool the pdf to the printer. In Windows this meant running something like “acrord32.exe /t filename.pdf” the /t switch was the key. The most difficult part was finding the documentation for this feature.

Leave a Reply