×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

[TRAY] Select different trays in one job

[TRAY] Select different trays in one job

[TRAY] Select different trays in one job

(OP)
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 :)

RE: [TRAY] Select different trays in one job

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?

RE: [TRAY] Select different trays in one job

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>.

RE: [TRAY] Select different trays in one job

(OP)
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 :)

RE: [TRAY] Select different trays in one job

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close