Cups and PostScript problem: lpr file.ps not printing

Posted by jason on Feb. 17, 2012, 12:38 p.m.
Tags: cups linux printing

I was having an issue with a perfectly valid postscript file that wasn't being printed when sending it to the printer with the lpr command.

It turns out that cups likes to run postscript files through filters before sending it to the printer. Consider this from my /var/log/cups/error_log file (when "LogLevel debug" is in your /etc/cups/cupsd.conf file) when running lpr myfile.ps:


D [17/Feb/2012:12:13:01 -0500] PID 17107 (/usr/lib/cups/filter/pstops) exited with no errors.

Filter? My .ps file just needs to be sent to the printer--everything the printer needs already is in that .ps file. To bypass the filter and send the .ps file to the printer "as is", do this:


lpr -l file.ps

Alternatively, you can also run lpr -o raw file.ps.


0 comments