For Programmers: Free Programming Magazines  


Home > Archive > PostScript > June 2005 > /Priority [x] on HP Laserjeet 4250dtn









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author /Priority [x] on HP Laserjeet 4250dtn
Raphaël MICHEL

2005-06-08, 8:58 pm

Hello, I work for a telecommunication operator.
To allow us to print invoices generated in the French West Indies for
our customers, our head office sends us a Postcript 3 file for a HP
Laserjet 8100 DN printer which prints some pages from tray 2 and others
from tray 4.

This is carried out via the following instructions:

/InputAttributes <</Priority [1 0] >> (for tray 2)

/InputAttributes <</Priority [5 3 6] >> (for tray 4)

We have now purchased a HP Laserjet 4250dtn printer fitted with two 500
sheet trays (trays 2 and 3), and a 1500 sheet tray (tray 4) as well as a
double sided module. We wish to know the Postcript instructions to allow
us to change trays.
As they are at present, the scripts do not work and everything comes out
of tray 4. After having tested the setting of "/Priority [x]" over the
whole integer range from 0 to 20, we have run out of ideas to make our
new printer work as we wish.

Raphaël MICHEL, SPM Télécom
Raphaël MICHEL

2005-06-09, 3:58 pm

*%======================================
===============================
*% InputSlot
*%======================================
===============================
*OpenUI *InputSlot/Source du papier: PickOne
*OrderDependency: 60 AnySetup *InputSlot
*DefaultInputSlot: Auto
*InputSlot Auto/Sélection auto. impr.: "
<</ManualFeed false /MediaPosition null>> setpagedevice"
*End
*InputSlot ManualFeed/Alim. manuelle (bac 1): "
<</ManualFeed true /MediaPosition 3>> setpagedevice"
*End
*InputSlot Tray1/Bac 1 : "
<</ManualFeed false /MediaPosition 3>> setpagedevice"
*End
*InputSlot Tray2/Bac 2 : "
<</ManualFeed false /MediaPosition 0>> setpagedevice"
*End
*InputSlot Tray3/Bac 3 : "
<</ManualFeed false /MediaPosition 1>> setpagedevice"
*End
*InputSlot Tray4/Bac 4 : "
<</ManualFeed false /MediaPosition 4>> setpagedevice"
*End
*InputSlot Tray5/Bac 5 : "
<</ManualFeed false /MediaPosition 38>> setpagedevice"
*End
*InputSlot EnvFeed/Bac à env.: "
<</ManualFeed false /MediaPosition 2>> setpagedevice"
*End
*?InputSlot: "
save
[(Tray2) (Tray3) (Tray4) (Tray5) (EnvFeed) (Tray1) (Unknown) ]
statusdict /papertray get exec
{get exec} stopped { pop pop (Unknown) } if =
currentpagedevice /InputAttributes get dup
/Priority get 0 get get /MediaType get = flush
restore
"
*End
*CloseUI: *InputSlot






gnewsremove1@uugw.hifn.com a écrit :

> This is a device specific question. My recommendation would be to look
> at the PPD file for the printer. It should have postscript snippets
> for selecting various trays for input. If you need it, the PPD
> specification is available from Adobe's website. You should be able to
> find the PPD file by using the File Search function on your computer
> (if windows based). The file name should be *.ppd. The file is an
> ASCII text file.
>
>
>
> Raphaël MICHEL wrote:
>
>
>

Helge Blischke

2005-06-09, 3:58 pm

Raphaël MICHEL wrote:
>
> Hello, I work for a telecommunication operator.
> To allow us to print invoices generated in the French West Indies for
> our customers, our head office sends us a Postcript 3 file for a HP
> Laserjet 8100 DN printer which prints some pages from tray 2 and others
> from tray 4.
>
> This is carried out via the following instructions:
>
> /InputAttributes <</Priority [1 0] >> (for tray 2)
>
> /InputAttributes <</Priority [5 3 6] >> (for tray 4)
>
> We have now purchased a HP Laserjet 4250dtn printer fitted with two 500
> sheet trays (trays 2 and 3), and a 1500 sheet tray (tray 4) as well as a
> double sided module. We wish to know the Postcript instructions to allow
> us to change trays.
> As they are at present, the scripts do not work and everything comes out
> of tray 4. After having tested the setting of "/Priority [x]" over the
> whole integer range from 0 to 20, we have run out of ideas to make our
> new printer work as we wish.
>
> Raphaël MICHEL, SPM Télécom


There must be some more details in the PS files you get. The priority
arrays
only determine the sequence in which the other entries in this
dictionary
(labelled with 0, 1, ... respectively) are checked for availablility.

Generally, it is much better to specify different media by media type or
media color.

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
gnewsremove1@uugw.hifn.com

2005-06-09, 3:58 pm

This says that the PS code to select Tray 1 is:
<</ManualFeed false /MediaPosition 3>> setpagedevice
The code for the ?InputSlot can be used to determine the current
setting, but this requires bidirectional communication, and may be
difficult use.

Given Helge's response, it seems as though the InputAttributes and
Priority won't set the tray, so you should look for some other code
that selects a tray (using the /MediaPosition) or some other feature
described in the PPD file. Helge suggested selecting the tray by media
type. This may be the method used - you need to find the relevant code
in the PPD file to know what to look for in the PS file that you're
working with. It might help to also look at the PPD file for the old
printer - look for differences in how features are used.

One final note - As I pointed out before, this sort of code is getting
to be device specific. It may be that the method used for the older
printer just won't work for the new one. You may need to replace the
old code with new & different code.

Rapha=EBl MICHEL wrote:
> *%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3
D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D
> *% InputSlot
> *%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3
D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D
> *OpenUI *InputSlot/Source du papier: PickOne
> *OrderDependency: 60 AnySetup *InputSlot
> *DefaultInputSlot: Auto
> *InputSlot Auto/S=E9lection auto. impr.: "
> <</ManualFeed false /MediaPosition null>> setpagedevice"
> *End
> *InputSlot ManualFeed/Alim. manuelle (bac 1): "
> <</ManualFeed true /MediaPosition 3>> setpagedevice"
> *End
> *InputSlot Tray1/Bac 1 : "
> <</ManualFeed false /MediaPosition 3>> setpagedevice"
> *End

[...][color=darkred]
> *?InputSlot: "
> save
> [(Tray2) (Tray3) (Tray4) (Tray5) (EnvFeed) (Tray1) (Unknown) ]
> statusdict /papertray get exec
> {get exec} stopped { pop pop (Unknown) } if =3D
> currentpagedevice /InputAttributes get dup
> /Priority get 0 get get /MediaType get =3D flush
> restore
> "
> *End
> *CloseUI: *InputSlot
>
>
>
>
>
>
> gnewsremove1@uugw.hifn.com a =E9crit :
>

Raphaël MICHEL

2005-06-09, 3:58 pm

Thanks for your help, now it works with :

<< /Duplex true /MediaPosition 0 >> setpagedevice

and

<< /MediaPosition 4 >> setpagedevice


Raphaël MICHEL


gnewsremove1@uugw.hifn.com a écrit :
> This says that the PS code to select Tray 1 is:
> <</ManualFeed false /MediaPosition 3>> setpagedevice
> The code for the ?InputSlot can be used to determine the current
> setting, but this requires bidirectional communication, and may be
> difficult use.
>
> Given Helge's response, it seems as though the InputAttributes and
> Priority won't set the tray, so you should look for some other code
> that selects a tray (using the /MediaPosition) or some other feature
> described in the PPD file. Helge suggested selecting the tray by media
> type. This may be the method used - you need to find the relevant code
> in the PPD file to know what to look for in the PS file that you're
> working with. It might help to also look at the PPD file for the old
> printer - look for differences in how features are used.
>
> One final note - As I pointed out before, this sort of code is getting
> to be device specific. It may be that the method used for the older
> printer just won't work for the new one. You may need to replace the
> old code with new & different code.
>
> Raphaël MICHEL wrote:
>
>
> [...]
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com