Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[TRAY] Select different trays in one job

Status
Not open for further replies.

yp56

Programmer
Aug 30, 2001
83
FR
Hello,
I will use this printer : HP9040 (postscript 3, PCL 5/6, HP PJL), 2 A4 paper trays, duplex unit
I have to select different trays into one job. All pages are A4 sized. The first page of a document should be printed from a tray which contains paper with a color logo. all other pages of a document should be printed from blank paper in duplex mode. A job can contains lots of documents.
Is it possible to do this with postscript ?

In this forum I saw such a code :
---------------------------------
{Esc]%-12345X@PJL
@PJL SET MEDIASOURCE = TRAY1
@PJL ENTER LANGUAGE = POSTSCRIPT
[Ctrl-D]%!
%!PS-Adobe
% All My PostSCript Code
---------------------------------
Can I call PJL commande wherever into my postscript ?

what do you think about that ?

thanks :)
 
Having a similar problem, this is a very similar string of commands which I also need to use, but I have no idea in what file these commands need to be in.

Can anyone point me in the right direction please?
 
I would not suggest PJL at all. Use the setpagedevice command to do this (ref. PLRM.pdf by Adobe), i.e.

To select color paper or pre-prined forms in simplex inject this line BEFORE the corresponding page in the postscript file:
<< /MediaColor (yellow) /Duplex false >> setpagedevice
You must set the corresponding tray as containing yellow paper.

To select white paper duplex:
<< /MediaColor (white) /Duplex true >> setpagedevice

You can find where a page starts in the ps file by searching for a line pattern like %%Page: <label> <number>.
 
is it into the PPD file that 'yellow' and 'white' are definied ? that's it ? can use a tray ID instead of a color ?
thanks :)
 
No. 'Yellow' should be paper color tray attribute for a particular tray set through the printer's console (if possible). Using color is much better than a tray number since it's a logical attribute vs. physical location. Advanced printers support media type attribute which is definitely the best to use (again through the printer's user interface console).

If your printer supports media type then put your preprinted forms in a tray and select 'preprinted' media type for this tray;
Put your white paper in another tray and select 'plain' media type for this tray; Use

<< /MediaType (preprinted) /Duplex false >> setpagedevice

to select your preprinted forms.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top