Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC5100 postscript tray select
@ 1995-02-23 11:42 Wilfred Mollenvanger
  1995-02-28 15:57 ` Tim Lasko, Digital Equipment Corp., Marlborough, MA
  0 siblings, 1 reply; 2+ messages in thread
From: Wilfred Mollenvanger @ 1995-02-23 11:42 UTC (permalink / raw)


Hi,

I'm looking for the postscript code to select the input papertray on
a DEC 5100 printer. We want use this printer from a non DEC
unix system and we don't got library/driver/script to do this. I've
done some experimenting and code like:

/TrayselUpper {
   currentpagedevice /InputAttributes get 0 get
   dup null eq
   { pop }
   { dup length 1 add dict copy
     dup /InputAttributes
     1 dict dup /Priority [0] put
     put setpagedevice
   } ifelse
} bind def

seems to work but isn't there a more 'standard' and cleaner way of doing
this? The problem is, but I'm not an postscipt programmer, that there's
no standard way to do tray selection in postscript. It's printer dependend.



Thanx,


Wilfred Mollenvanger.


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

* Re: DEC5100 postscript tray select
  1995-02-23 11:42 DEC5100 postscript tray select Wilfred Mollenvanger
@ 1995-02-28 15:57 ` Tim Lasko, Digital Equipment Corp., Marlborough, MA
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Lasko, Digital Equipment Corp., Marlborough, MA @ 1995-02-28 15:57 UTC (permalink / raw)



In article <1995Feb23.114200.5043@cti.wnc.nedlloyd.nl>, wilfred@zeus.wnc.nedlloyd.nl (Wilfred Mollenvanger) writes...
>Hi,
> 
>I'm looking for the postscript code to select the input papertray on
>a DEC 5100 printer. We want use this printer from a non DEC
>unix system and we don't got library/driver/script to do this. I've
>done some experimenting and code like:
 [PostScript code deleted]
>seems to work but isn't there a more 'standard' and cleaner way of doing
>this? The problem is, but I'm not an postscipt programmer, that there's
>no standard way to do tray selection in postscript. It's printer dependend.

PostScript Level 2 operators for media selection are complex, even obutse at
times.

The DEClaser 5100 includes several level 1 PostScript compatibility operators,
such as "setpapertray". You can select trays via "0 setpapertray", "1
setpapertray", etc. That might be easier than this. The compatibility operators
are written as level 2 procedures which execute code similar to what you've
already been playing with.

-------------------------------------------------------------------------------
Tim Lasko, Digital Equipment Corp., Marlborough MA (lasko@regent.enet.dec.com)
Tim Lasko, private citizen                         (TeemL@aol.com)
My opinions are my own; the facts can speak for themselves. I'm on my own time.
For Digital printer support: call 1.800.777.4343 or email printers@digital.com


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

end of thread, other threads:[~1995-02-28 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-23 11:42 DEC5100 postscript tray select Wilfred Mollenvanger
1995-02-28 15:57 ` Tim Lasko, Digital Equipment Corp., Marlborough, MA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox