Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 1998 12:34:04 -0500
From:      Howard Goldstein <hgoldste@bbs.mpcs.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        lmadrig@acnet.net
Subject:   postscript printcap, LJ (was Re: hi!)
Message-ID:  <199803311734.MAA06826@bbs.mpcs.com>
In-Reply-To: <35212478.519D4D90@acnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Leonardo Madrigal <ladrig@acnet.net> wrote:
 : 
 :  I have a Laserjet 5l Hp printer, i make my printcap and i passed the
 : lptest to the printer, and works
 : fine for  plain text, but when i try to print from my netscape, or from
 : Staroffice the printer prints more
 : than 15 pages with postscript, i have already 3 input filters,and no one
 : works..

Here's what I use for postscript with an LJ3.  Something like this
(using ghostscript) should work for you too, although if the LJ5L has
native postscript then my technique will be horribly inefficient...


in /etc/printcap:
#  Postscript printing, input is postscript, output is hplj3
#
ps:lp=/dev/lp:sd=/var/spool/lpd/ps:lf=/var/spool/lpd/ps/errs:\
        :if=/usr/local/bin/psToLj:\
        :mx#0:sh:sf:


in /usr/local/bin/psToLj:
#!/bin/sh
# convert postscript to laserjet3 output
/usr/local/bin/gs -sDEVICE=ljet3 -r300 -dNOPAUSE -q -sOutputFile=- -


Under this regime, in netscape you'd specify the print command as 
lpr -Pps

Different constructions are possible...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803311734.MAA06826>