Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Printing compressed on a Okidata connected to HP Jet Direct
@ 1998-12-10  5:00 russelsl
  1998-12-10  5:00 ` Ernest LaBonte
  1998-12-18  5:00 ` Mark Sornson
  0 siblings, 2 replies; 3+ messages in thread
From: russelsl @ 1998-12-10  5:00 UTC (permalink / raw)


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.

Also, what would you recommend to gain more knowledge on this subject?

Thanks,


Shawn Russell
russelsl@answers.ke.dupont.com

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Printing compressed on a Okidata connected to HP Jet Direct
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Ernest LaBonte @ 1998-12-10  5:00 UTC (permalink / raw)


I don't have an Epson printer and my Epson documentation is not complete.
However this should get you in the ball park.

The file below is for use with the pcfof print filter provided in V4.0D.

Make sure there are no spaces or tabs at the end of any line in the file. If
there are it will be printed.

----- cut here ----
! epson.pcf
!
! Installing:
!
!       Copy this file to /usr/lbin/pcf/epson.pcf
!       chmod 644 /usr/lbin/pcf/epson.pcf
!       Use lprsetup to create a printcap entry for an ln17 printer.
!       Edit the printcap entry and change +Cln17.pcf to +Cepson.pcf .
!
! Notes:
!
!       Default cpi is 12.
!       'lpr -Ocpi15 file' may select cpi of 15
!
!       Add additional Epson setup commands at 'init seq:'.
!       \033 is the octal code for ESCAPE.
!       Entering \000 is not allowed.
!
!-
format version:003
! Filter Types: PPL, PCL, ASCII, XF
filter type:ASCII
auto passthru:Y
reset:\033@
reset delay:0
! Set cpi to 12?
init seq:\033M
init delay:0
term seq:\033@
term delay:0
auto reset:N
orientation:portrait
portrait:
portrait lines:66
portrait columns:0
landscape:
landscape lines:66
landscape columns:0
landscape threshold:
wrap line:N
wrap line mark:
newline:\015\012
return:\015
newpage:\015\014
eojnewpage:
backspace:\010
tab:\011
tab width:8
tab expansion:N
! Set cpi to 15?
define cpi15:\033g





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Printing compressed on a Okidata connected to HP Jet Direct
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Sornson @ 1998-12-18  5:00 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-12-18  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox