[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help hacking print filter.



On Tue, Nov 18, 1997 at 04:25:17AM -0500, ioannis@flinet.com wrote:
> On Mon, Nov 17, 1997 at 10:03:41PM -0500, Dale Scheetz wrote:
> > I am printing postscript files to my HP DeskJet using printcap and a gs
> > filter. Things work as expected, but I have several minor glitches that I
> > can't figure out how to deal with.
> > 
> > When I print a "plain ascii" file I simply cat the file to the printer.
> > The printer defaults to "high quality" print mode, so to save ink I cat a
> > set of 4 characters that push the printer into "draft" mode. My problem is
> > that I can't figure out how to get the filter to prepend these characters
> > to the front of the input stream, so all my postscript files use ink like
> > crazy. Is there any way that I can get the characters prepended so that
> > postscript files will print in draft mode as well?

echo -e "\033(s1Q" >/dev/lp1

You will probably find that the output from ghostscript puts a "\033E" in -
a reset - IIRC this will reset the print to letter (non-draft) quality.  I
think this calls for sed/awk.

> > As I said these are fairly minor problems, and I'm sure HP would be happy
> > if I couldn't reduce my ink usage, but my prospective use is going to go
> > up so I could realy use a solution.

Get a dot-matrix :-)  I have some stuff on DeskJets and using magicfilter at
http://www.users.zetnet.co.uk/wyvern. Unfortunately I never finished it (or
the scripts). I recommend you use magicfilter and lpr as people seem to have
problems with lprng and apsfilter.

Adrian

email: adrian.bridgett@poboxes.com       | Debian Linux - www.debian.org
http://www.poboxes.com/adrian.bridgett   | Because bloated, unstable 
PGP key available on public key servers  | operating systems are from MS


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: