If you are using Xalan, it would be fairly simple to add an extension
function to spit out hard coded PCL3 commands to print a small bitmap (IIRC
just RLE of the pixels to print with some escape sequences) when called
(could even be more sophisticated and generate the PCL dynamically). Also
could do a function to output the PCL escape sequences to change the
font/size as desired. Of course changing font spacing could greatly
complicate the layout. Remember that without FOP the stylesheet would need
to do all the layout (perhaps with assistance from extension functions). For
our purposes, the reports we did this with were fairly simple tables. We did
an extension function to pad the passed value to a certain width (number of
characters) and just stacked the columns in the table. Worked quite well. We
did not need anything fancy like font changes or images.

Art

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: RE: PCL Problems on HP Deskjet 400


Hrm...plain text might be ok if we could have a small image and some
variable size text - any idea of I could use extensions for this?

-----Original Message-----
From: Art Welch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: PCL Problems on HP Deskjet 400


Another thought... I am not sure if it has been suggested before, but
perhaps it may be better (easier) to just have a stylesheet generate plain
text and not use FOP at all. We have done this for some of our more simple
reports (that do not need to look pretty). This has the added benefit of
processing much faster (in our case anyway). You may even be able to add
some extension functions to your XSLT processor to enhance the plain text
output somewhat.

Art

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: PCL Problems on HP Deskjet 400


Very interesting and helpful information.  My understanding was that the
renderer would render the page as it is laid out in the XSL file, and since
the header is near the top (with text and graphics) I find it odd that it is
rendered and appears at the bottom of the page.

The text itself looks like it is in a much smaller font, but the sizes on
the page on relative to each other.  My main concern now is getting things
to appear in the proper order - either with or without an image.  If I take
out the header portion, things seem to work better.

Thanks again for the help,

Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to