Printer tray selection can not be placed into a document using xsl-fo. I had the same problem, for a client, we wrote a small app that inserted/embedded the appropriate information into the PS file right before it was spooled to the printer. Search for %%Page and insert the command immediately preceding it. There is a standard PS command to select a printer tray:

 

Right before each %%Page: we did this:

 

statusdict begin 0 setpapertray end

%%Page: 1 1

 

<...removed for brevity...>

 

statusdict begin 0 setpapertray end

%%Page: 2 2

 

<...removed for brevity...>

 

statusdict begin 1 setpapertray end

%%Page: 3 3

 

The following line would sent the first sheet (pg 1 and 2) to the tray 0 and the second sheet to tray 1 (pg 3)

 

Some printers are zero based others are one based.

Use @ your own risk, this may not work on all printers.

 

Rob

 

-----Original Message-----
From: bhaskar ramasamy [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 3:50 PM
To: [EMAIL PROTECTED]
Subject: Printer Tray selection

 

Hai All,

Iam using an  FOP to generate a PS file.This PS file will be send to 
printer.Currently It works fine without any problem.

But now my current requirement is, this PS file has to be printed using
two different trays.I tried to place the PCL commands in XSL.But all my
efforts gets failed.
 
Can I pass printer PCL commands from FOP?

Can u suggest me How to print a single PS/PDF file into two different
trays?

For example Take my PS file contains 10 pages.6 pages has to printed
from first Tray.And the remaining 4 pages has to be printed from second
Tray.


Thanks and Regards,

Bhaskar

Yahoo! India MobileSMS using the Yahoo! Messenger; Download latest version.

Reply via email to