From: Mark Sornson <sornson@zk3.dec.com>
Subject: Re: Printing compressed on a Okidata connected to HP Jet Direct
Date: 1998/12/18 [thread overview]
Message-ID: <367A245C.6CD349B8@zk3.dec.com> (raw)
In-Reply-To: 74pa8n$uqd$1@nnrp1.dejanews.com
russelsl@answers.ke.dupont.com wrote:
>
> I previously posted without supplying enough information:
>
> I am attempting to print compressed on an Okidata Microline 591 using Epson LQ
> emulation. The Okidata is connected to an HP JetDirect EX Plus 3 on port #1.
> I am printing in Digital Unix 4.0D
>
> I apologize if what I am attempting is not clear, but I barely have enough
> knowledge to qualify me as a junior administrator: I have a legacy
> application that sends raw ascii text to the printer and I need to be able to
> change the printer pica from 10cpi to 12cpi and also 17cpi (compressed). I
> figure I could either create a script that will echo \033\17\c to set the
> printer in 17cpi and then issue \033@\c to reset the printe back to it's
> default state. Where I am lost is what option do I need to change in
> lprsetup to get it to read a filter file, create a filter that will send the
> control sequence to a remote printer and send the text output, and reset the
> printer after the printjob is complete.
>
> I feel I should set it up with the option if=/usr/lbin/myfilter:\ and I would
> assume I could either write a c program to printf what I need or have a script
> file echo the sequence. I hope this give a better explanation of what I am
> trying to get accomplished. Thanks for any advice you can give.
>
Have you already used lprseutp to create a
queue for the filter? If so, what does the /etc/printcap
entry look like?
If you've already created the entry, you don't
have to use lprsetup, but instead can just edit the
/etc/printcap file by hand to change the printer
entry.
You are correct that the "if" option is the one
you would most likely want to change. But (again
assuming you already have the printer set up) you
don't want to lose the behavior of the existing
filter. So perhaps you could create a script for
the input filter ("if") that calls your compressed-mode
setup first, and then calls the filter currently
in use. Then you might want to call your filter
again (or another one by you) to reset the printer
back to non-compressed mode.
Also, make sure your filter has the correct protection
and ownership set. Compare it to any of the filters
that ship with the O/S in /usr/lbin.
-mark.
prev parent reply other threads:[~1998-12-18 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-10 5:00 Printing compressed on a Okidata connected to HP Jet Direct russelsl
1998-12-10 5:00 ` Ernest LaBonte
1998-12-18 5:00 ` Mark Sornson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox