Bug 20923 - Render PCL controls using XSL template
Summary: Render PCL controls using XSL template
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: all
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-19 17:09 UTC by Sashikumar RC
Modified: 2012-04-01 13:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sashikumar RC 2003-06-19 17:09:59 UTC
I have to use PCL commands in my PDF and PS outputs to control printer trays. 
Last 2 pages of my output should print from Tray2 and rest of the doucment 
should print from Tray1.

The following are my PCL Command suggested by my printer vendor.

To select Tray1 - <ESC>&l8H
To select Tray2 - <ESC>&l1H

The above control sequence is working file from an ordinary text file. I am 
able to select print trays and print accordingly.

I have the following sample xsl template where I have these escape sequences

<!-- The below codings has to be tested for Tray Selection Bug -->
      <fo:block break-before="page"></fo:block>
      <fo:block>&lt;ESC&gt;&amp;l1HThis should print From Tray 2</fo:block>
      <fo:block break-before="page"></fo:block>
      <fo:block>&lt;ESC&gt;&amp;l8HThis should print From Tray 1</fo:block>
      <fo:block break-before="page"></fo:block>
<!-- The above codings has to be modified for our Bug -->

When I implement this, I am getting all my controls literally printing from the 
default tray. 

I am seriously thinking, whether the implementation of Escape sequence is 
correct or not. 

Any thoughts?..
Comment 1 J.Pietschmann 2003-06-19 20:40:18 UTC
Printer control commands cannot be passed through regular content in XSLFO,
almost by definition. Apart from this, your understanding how printer
controls look like is seriously wrong, as well as your understanding about
printer tray selection mechanisms in PDF and PostScript.
There are some possiblities to postprocess FOP output to achieve printer
tray selection, but this is non-trivial stuff.
Please don't use bugzilla to ask questions, there is a fop-user list for
this purpose.
Comment 2 Glenn Adams 2012-04-01 13:50:56 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs