« Hooking DbXml to Scheme | Main | Philip Evans on Lowering Transaction Costs »

Printing PDF from the Command Line

I had about 20 PDF files I needed to print out on my Powerbook and I didn’t want to open each file in Preview and then tell each one to print, so I went out looking for ways to print PDF from the command line. I found this handy chapter about Unix-style printing in OS X (from an O’Reilly book) that told me that the lpr command on OS X just knows about PDF. So, in the end it was no more complicated than this:

for f in *.pdf
> do lpr -PCSOffice $f    
> done

Posted by windley on June 22, 2005 2:35 PM

See related posts:

1 Comments

Comment from fred at June 22, 2005 11:41 PM

Why the "for" loop?

Would not "lpr -PCSOffice *.pdf" do just as well?