Windows Print PDF with LPR from Command Line prints as text

1.5k views Asked by At

When I try to print a PDF via lpr at the command prompt, the pdf is interpreted as text and garbage prints.

I have tried all of the following:

lpr -S PRINTSVR -P LP4081 c:\sample.pdf

lpr -S PRINTSVR -P LP4081 -ol c:\sample.pdf

lpr -S PRINTSVR -P LP4081 -o l c:\sample.pdf

lpr -S PRINTSVR -P LP4081 "-o l" c:\sample.pdf

lpr -o l -S PRINTSVR -P LP4081 c:\sample.pdf

How do I print a pdf from the command line using lpr in Windows?

0

There are 0 answers