From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653755322259.tru64-unix-managers.marc@archive.invalid> From: "Myszkowski.Mark" Date: Mon, 08 Apr 2002 13:22:01 +0000 To: tru64-unix-managers Subject: SUMMARY: Printer escape commands in postscript X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653755322259 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C1DF00.5DED6E80" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1DF00.5DED6E80 Content-Type: text/plain; charset="iso-8859-1" My original message is below. Thank you very much to everyone who responded. Richard's message gave us the info that we needed. -----Original Message----- From: Richard xxxx Sent: Friday, April 05, 2002 4:10 PM To: Myszkowski.Mark Subject: Re: Printer escape commands in postscript The problem is that PostScript will reset the tray and you must put the command in the PostScript file being sent to the printer like so: % for the LaserJunk4, the trays are as follows: % % tray 0 = upper cassette % tray 1 = lower cassette % tray 2 = optional envelope feeder % tray 3 = multipurpose tray % statusdict begin % % say this for lower tray % 1 setpapertray % % say this for upper tray % 0 setpapertray end ... Moset of the above is comments so you really need only three lines: statusdict begin 1 setpapertray end That you need to stuff in near the beginning of the PostScript file before "EndProlog". This may be easy or it may not be, we do it here with gnu troff jobs using Perl but it could also be done with sed. Richard Loken VE6BSV, Systems Programmer - VMS : "...underneath those Athabasca University : tuques we wear, our heads Athabasca, Alberta Canada : are naked!" ** tech@cs.athabascau.ca ** : - Arthur Black Richard Loken VE6BSV, Systems Programmer - VMS : "...underneath those Athabasca University : tuques we wear, our heads Athabasca, Alberta Canada : are naked!" ** tech@cs.athabascau.ca ** : - Arthur Black ___ This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed. --- We would like to send commands like &l2A (for letter) &l1H (for upper tray) &l4H (for lower tray) to a postscript printer queue like this: lp536|pedc0961ps|pedc0961ps:\ :lf=/usr/adm/lp536err:\ :lp=:\ :rm=pedc0961:\ :rp=hpstream:\ :sd=/usr/spool/lpd536: Right now the command sequences are ignored but if I change the "rp" value to "text" then they work fine. We need this to be a postscript queue however. How can we control the tray if the queue is setup for postscript? Thank you very much, Mark Myszkowski mark.myszkowski@wepco.com ------_=_NextPart_001_01C1DF00.5DED6E80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable SUMMARY: Printer escape commands in postscript

My original message is below.  Thank you very = much to everyone who responded.  Richard's message gave us the = info that we needed.

-----Original Message-----
From: Richard xxxx
Sent: Friday, April 05, 2002 4:10 PM
To: Myszkowski.Mark
Subject: Re: Printer escape commands in = postscript


The problem is that PostScript will reset the tray = and you must put the
command in the PostScript file being sent to the = printer like so:

        % for the = LaserJunk4, the trays are as follows:
        %
        %       tray 0 =3D upper = cassette
        %       tray 1 =3D lower = cassette
        %       tray 2 =3D optional = envelope feeder
        %       tray 3 =3D multipurpose = tray
        %
        statusdict begin
        %
        % say = this for lower tray
        %
        1 = setpapertray
        %
        % say = this for upper tray
        %
        0 = setpapertray
        end
        ...

Moset of the above is comments so you really need = only three lines:

        statusdict = begin
        1 = setpapertray
        end

That you need to stuff in near the beginning of the = PostScript file
before "EndProlog".  This may be easy = or it may not be, we do it here with
gnu troff jobs using Perl but it could also be done = with sed.

  Richard Loken VE6BSV, Systems Programmer - = VMS   : "...underneath those
  Athabasca University  =         =         =            : tuques we = wear, our heads
  Athabasca, Alberta = Canada     =         =            : are = naked!"
  ** tech@cs.athabascau.ca **   &= nbsp;           &= nbsp;      :    - Arthur = Black



  Richard Loken VE6BSV, Systems Programmer - = VMS   : "...underneath those
  Athabasca University  =         =         =            : tuques we = wear, our heads
  Athabasca, Alberta = Canada     =         =            : are = naked!"
  ** tech@cs.athabascau.ca = **           &nbs= p;          = :    - Arthur Black



___
    This communication is intended = for the use of the recipient to whom it
    is addressed, and may contain = confidential, personal, and or privileged
    information. Please contact us = immediately if you are not the intended
    recipient of this communication, = and do not copy, distribute, or take
    action relying on it. Any = communications received in error, or
    subsequent reply, should be = deleted or destroyed.
---

We would like to send commands like

<ESC>&l2A      = (for letter)
<ESC>&l1H      = (for upper tray)
<ESC>&l4H      = (for lower tray)

to a postscript printer queue like this:

lp536|pedc0961ps|pedc0961ps:\    =
        = :lf=3D/usr/adm/lp536err:\ 
        = :lp=3D:\          &nbs= p;       
        = :rm=3Dpedc0961:\         &n= bsp;
        = :rp=3Dhpstream:\         &n= bsp;
        = :sd=3D/usr/spool/lpd536:

Right now the command sequences are ignored but if I = change the "rp" value to "text" then they work = fine.  We need this to be a postscript queue however.  How = can we control the tray if the queue is setup for = postscript?

Thank you very much,

Mark Myszkowski
mark.myszkowski@wepco.com

------_=_NextPart_001_01C1DF00.5DED6E80--