SUMMARY: Printer escape commands in postscript

From: Myszkowski.Mark <Mark.Myszkowski_at_wepco.com>
Date: Mon, 08 Apr 2002 08:22:01 -0500

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_at_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_at_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 
<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=/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_at_wepco.com
Received on Mon Apr 08 2002 - 13:22:22 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT