Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3227

Re: on paper tray selection

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: on paper tray selection
Date 2018-01-20 09:32 +0000
Message-ID <MPG.34cd1ceb3cd34e48989926@usenet.plus.net> (permalink)
References <eli$1801171916@qz.little-neck.ny.us> <eli$1801181424@qz.little-neck.ny.us> <MPG.34cbc59b69c27671989922@usenet.plus.net> <MPG.34cc231de38863ec989923@usenet.plus.net> <eli$1801191424@qz.little-neck.ny.us>

Show all headers | View raw


In article <eli$1801191424@qz.little-neck.ny.us>, *@eli.users.panix.com 
says...

> I got two pages of output, with one line in the middle of one them
> overwritten several times. Reading it, maybe an array of arrays triggers
> that? But overall it's a pretty cool program.

An array of arrays is supposed to just dump the array, but I think I 
forgot to trigger a newline, so yeah that seems likely. Drat.
 
> The long line appears to be an array called "Install", so probably not
> too interesting anyway.

That's fortunate, all that does is contain procedures (packedaaray type) 
to set certain device-dependent graphics-state parameters. Most likely 
you can ignore everything there.
 
> The InputAttributes dictionary is empty. Previous to running this, I
> hadn't realized InputAttributes was a dictionary inside of
> currentpagedevice. I know only a little Postscript programming.

Well that's pretty sucky really. So the printer hardware isn't telling 
the PostScript interpreter anything at all that it knows about its 
configuration :-(

> 
> All of the straight out of currentpagedevice Media* settings show up
> as "--nostringval--". They are:
> 
> 	MediaPosition
> 	MediaType
> 	MediaColor
> 	MediaWeight
> 
> Also, possibly relevant, OutputType is "--nostringval--".
> 
> In the Policies dictionary:
> 
> 	<<
> 	 MediaWeight 1
> 	 PolicyReport
> 	 [pop ]
> 	 OutputDevice 0
> 	 PageSize 0
> 	 InputAttributes 1
> 	 PolicyNotFound 1
> 	 MediaType 1
> 	 MediaColor 1
> 	>>
> 
> And there's a 
> 
> 	DeferredMediaSelection true
> 
> I'm going to guess all that means media (weight|type|color) can be used
> to select a tray, but not media position.

Probably not, no. With InputAttributes being empty there's no (standard) 
way for a PostScript interpreter to select amongst different media. The 
interpreter thinks it only has one.

The only think I can suggest is brute-force experimentation.

I'm not clear how, at the moment, you switch between selecting media 
from the paper tray, the  manual feed, envelopes and your label printer. 
I guess I don't need to worry about envelopes and labels.

Are you pressing buttons on the front panel or something ?

The obvious thing to do is send something like this:

%!

<<
/MediaPosition 0
>> setpagedevice
showpage

<<
/MediaPosition 1
>> setpagedevice
showpage

<<
/MediaPosition 2
>> setpagedevice
showpage


and see where the printer pulls media from. Duplex is easy, that's 
absolutely standard:

%!

<<
/Duplex false
>> setpagedevice
showpage

So you might want to combine those as:

%!

<<
/Duplex false
/MediaPosition 0
>> setpagedevice
showpage
.....

If the printer pulls from different trays you can probably work out how 
to control it. If it doesn't then I'm forced to assume that Brother 
simply doesn't want to let you control the tray selection from 
PostScript. Which would, of course, explain the empty entries in the 
PPD......



			Ken

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-18 00:39 +0000
  Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-18 12:06 +0000
    Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-18 14:06 +0000
    Re: on paper tray selection Martin Leese <please@see.Web.for.e-mail.INVALID> - 2018-01-18 10:57 -0700
      Re: on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-18 19:24 +0000
        Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-19 09:07 +0000
          Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-19 15:46 +0000
            Re: on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-19 18:26 +0000
              Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-20 09:15 +0000
            Re: on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-19 19:24 +0000
              Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-20 09:32 +0000
          Re: on paper tray selection Martin Leese <please@see.Web.for.e-mail.INVALID> - 2018-01-19 10:55 -0700
            Re: on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-19 18:33 +0000
              Re: on paper tray selection ken <ken@spamcop.net> - 2018-01-20 09:18 +0000
  Re: on paper tray selection jdaw1 <jdawiseman@gmail.com> - 2018-01-21 04:44 -0800
    Re: on paper tray selection Martin Leese <please@see.Web.for.e-mail.INVALID> - 2018-01-23 10:17 -0700
      Re: on paper tray selection Eli the Bearded <*@eli.users.panix.com> - 2018-01-26 17:55 +0000

csiph-web