Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!news.seinf.abb.se!nooft.abb.no!Norway.EU.net!nntp.uio.no!news.cais.net!newsfeed.internetmci.com!malgudi.oar.net!wqs1.ysi.com!kfurge From: kfurge@wqs1.ysi.com (K.C. Furge) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Filter for HPDeskJet500C wanted Date: 13 Jun 1996 02:11:59 GMT Organization: YSI, Inc. Lines: 32 Message-ID: <4pntdf$9qb@wqs1.ysi.com> References: <9ckBPD1w165w@tusia.kiel.org> Reply-To: kfurge@ysi.com NNTP-Posting-Host: wqs1.ysi.com X-Newsreader: TIN [version 1.2 PL2] Maciej Wiatr (macko@tusia.kiel.org) wrote: : Hallo, : I have fought with my printer for some days and reached nothing. : After reading the printing.sgml file I installed the filter file, : which is given there as one for HPDeskJet500 series : I have a 500C and this is what I use: #!/bin/sh # # printer filter for hp-deskjet compatible printers # # this turns on the LF -> CR + LF translation printf "\033&k2G" # here we decide if it's postscript or not - postscript goes through gs read first_line first_two_chars=`echo "$first_line" | cut -c1-2` if [ "$first_two_chars" = "%!" ]; then (echo "$first_line"; cat) | /usr/local/bin/gs \ -q -dNOPAUSE -sDEVICE=djet500 -sOutputFile=- -sPAPERSIZE=letter \ - /usr/local/lib/ghostscript/quit.ps else # (echo "$first_line"; cat; printf "\014") (echo "$first_line"; cat) fi If you want the form feed, swap the comment on the last two lines. - K.C.