🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.postscript
2 messages
2 total messages Started by Jonathan Monsarrat Thu, 19 Nov 1992 21:58
How to switch paper trays?
#5747
Author: Jonathan Monsarrat
Date: Thu, 19 Nov 1992 21:58
50 lines
2228 bytes
I'm posting this for a friend. --Jon

------------------------------------------------------------
Hello netters (or should I say nutters???  :-)

I am having trouble posting to this group and so Jonathan Monsarrat has
been kind enough to post this article on behalf of myself.  Please address
any replies to pjc@melb.bull.oz.au, not to the poster.

I am trying to develop some postscript code that will control which of
two paper trays the next page will be printed from.  Unfortunately, I
do not have access to such a printer to test my code and the one
person I know who does have access seems to be unavailable at the
moment.

I have defined the following functions in my prolog:

/BinT {statusdict begin 0 setpapertray end} def
/BinB {statusdict begin 1 setpapertray end} def

Before each StartPage sequence, I call one of the above functions to
set the desired paper tray.  E.g.

BinT
StartPage

My contact, as mentioned above, did get to try it once and said that
it didn't seem to work before he became unavailable, so I have the
following questions:

1. I suspect that different printers may number their paper trays
   differently (i.e. 0 and 1 or 1 and 2).  Is this the case and, if
   so, what printers use what numbers?  Is there a way of querying the
   printer about its paper trays?

2. Is my usage of the setpapertray command correct?

I would appreciate any and all information relating to this topic - would
you please email me at pjc@melb.bull.oz.au and I will arrange to have the
results posted if there is any interest.

Thanks in advance!

Blueskies from down-under,
Paul

| Paul Carapetis, Software Advisor (Unix, DOS, C)|   Phone: 61 3 2464944     |
| Internet: pjc@melb.bull.oz.au            | There are only two experiences  |
| #define STD_DISCLAIMER _my_opinion_only  | in life: successes and lessons! |
Re: How to switch paper trays?
#5767
Author: Stephen Zisk
Date: Fri, 20 Nov 1992 20:17
36 lines
2093 bytes
In article <1992Nov19.215824.4822@cs.brown.edu>, jgm@cs.brown.edu (Jonathan
Monsarrat) wrote:
> /BinT {statusdict begin 0 setpapertray end} def
> /BinB {statusdict begin 1 setpapertray end} def
> 
> Before each StartPage sequence, I call one of the above functions to
> set the desired paper tray.  E.g.
> 
> BinT
> StartPage
> 
> 1. I suspect that different printers may number their paper trays
>    differently (i.e. 0 and 1 or 1 and 2).  Is this the case and, if
>    so, what printers use what numbers?  Is there a way of querying the
>    printer about its paper trays?
> 
> 2. Is my usage of the setpapertray command correct?

The answer to #1 is yes, printers can use different numbering systems.
Without a printer supplement, you will have to experiment to find out
what the numbers mean.

On #2, yes, you are using it fine, *BUT* remember, it is subject to save
and restore. If a page-level save is done before your call, and the restore
occurs before the showpage (good practice for structuring), then the
restore will undo your call to setpapertray. On a Level 2 machine, this
would install a new page device, and your page would be erased as well.

Check the structure carefully and make sure you are not shooting yourself
in the foot.

Stephen Zisk (zisk@adobe.com)  Disclaimer: These are my personal views
Adobe Systems Incorporated     and do not represent the position of
Eastern Regional Office        Adobe Systems Incorporated.
24 New England Exec. Park
Burlington, MA 01803           They pay me but they don't muzzle me!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads