Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUPS printing of PDF files

Tags:

cups

How can I tell the lpr command (CUPS) that my file is actually a PDF?

lpr file.pdf

won't print anything.

like image 403
vonPetrushev Avatar asked Feb 23 '23 02:02

vonPetrushev


1 Answers

Is this really the CUPS-based lpr, or is it a remnant of another spooling system which was not removed before installing CUPS?

Check it by running ldd $(which lpr) and see if there is any reference to libcups.

Also, the complete command should be:

lpr -P printername file.pdf

For a correctly and completely installed CUPS you'd not need to tell it the file type you send to print. It will "auto-type" the input, and apply the right conversion filters to make it digestable by the target printer.

like image 175
Kurt Pfeifle Avatar answered Jun 02 '23 14:06

Kurt Pfeifle