Thread: LPD printing
View Single Post
  #7   (View Single Post)  
Old 21st December 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,292
Default

My reversion to lpd(8) includes foomatic-rip in "direct" mode, using the JetDirect port 9100.
  1. This allows me to print PDFs as well as Postscript files, and
  2. I can set print options by spool queue.
/etc/printcap:
Code:
# Default printer.  Postscript or PDF only, using foomatic-rip (print/cups-filters).

lp|m451mw|HP LaserJet Pro 400 model m451mw:\
        :lp=9100@printer:\
        :if=/usr/local/libexec/foomatic.filter.default:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:\
        :sh:

# Same printer, using No. 10 Envelope and manual feed.
# These are 4.25" high and 9.5" wide.  

env|m451mw|HP LaserJet Pro 400 model m451mw:\
        :lp=9100@printer:\
        :if=/usr/local/libexec/foomatic.filter.env10:\
        :sd=/var/spool/output-env:\
        :lf=/var/log/lpd-errs:\
        :sh:
/usr/local/libexec/foomatic.filter.default
Code:
#!/bin/sh

/usr/local/bin/foomatic-rip --ppd /etc/foomatic/direct/hp-lj_300_400_color_m351_m451-ps.ppd
/usr/local/libexec/foomatic.filter.env10
Code:
#!/bin/sh

/usr/local/bin/foomatic-rip --ppd /etc/foomatic/direct/hp-lj_300_400_color_m351_m451-ps.ppd \
  -o InputSlot=Tray1_man -o PageSize=Env10
Reply With Quote