lp filters in Solaris 2.5
The solution was to set the printer content type to 'postscript' rather
than 'any' or 'postscript,simple'.
I was under the impression that content type was the type of data that the
lp system would accept for the printer, not the type that the printer
would process. I figured it would accept those types and apply an
appropriate filter if necessary.
--
Todd Pfaff \ Email:pfaff@mcmaster.ca
Computing and Information Services \ Voice: (905) 525-9140 x22920
ABB 132 \ FAX: (905) 528-3773
McMaster University \
Hamilton, Ontario, Canada L8S 4M1 \
On Wed, 8 May 1996, Todd Pfaff wrote:
> Date: Wed, 8 May 1996 19:08:36 -0400 (EDT)> From: Todd Pfaff <todd@edge.cis.mcmaster.ca>> To: Sun Managers <sun-managers@eecs.nwu.edu>> Subject: lp filters in Solaris 2.5> Followup-To: junk> > I have a LaserJet 4 printer connected to a Sun Solaris 2.5 system.> This printer is set to print Postscript only and I'd like to have the lp> printing system automatically convert text files to Postscript. I don't> quite understand how filters in /etc/lp/filter.table are invoked.> > The /etc/lp/printers/printername/configuration file for this printer is:> > Banner: off> Content types: any> Device: /dev/term/a> Interface: /usr/lib/lp/model/standard> Printer type: PS> Modules: default> > > The /etc/lp/filter.table has the entry:> > :any:any:simple:postprint:postscript:slow:/usr/lib/lp/postscript/postprint:PAGES * = -o*,LENGTH * = -l*,MODES group = -n2,MODES group\=\\([2-9]\\) = -n\\1,MODES portrait = -pp,MODES landscape = -pl,MODES x\=\\(\\-*[\\.0-9]*\\) = -x\\1,MODES y\=\\(\\-*[\
\.> 0-9]*\\) = -y\\1,MODES magnify\=\\([\\.0-9]*\\) = -m\\1,MODES catv_filter = -I> > for filtering simple input type to postscript output type.> > I've tried printing text files using:> > lp -Pprintername filename> > or> > lp -T simple filename> > but the text-to-postscript filtering never happens.> > Am I missing something? How do I get lp to actually use that filter?> > --> Todd Pfaff \ Email:pfaff@mcmaster.ca> Computing and Information Services \ Voice: (905) 525-9140 x22920> ABB 132 \ FAX: (905) 528-3773> McMaster University \> Hamilton, Ontario, Canada L8S 4M1 \
--
Todd Pfaff \ Email:pfaff@mcmaster.ca
Computing and Information Services \ Voice: (905) 525-9140 x22920
ABB 132 \ FAX: (905) 528-3773
McMaster University \
Hamilton, Ontario, Canada L8S 4M1 \

