David,
A couple of notes from experience:
Don't use transparency in GIF's (goes black).
Don't use JPG for PCL output (can crash FOP).
Don't scale images containing text (pixelates: use a factor of 2 if necessary).
Cheers,
Roland
-Original Message-
From: David 'Dox' Shevitz
You must be using Tomcat in exploded mode (in your server.xml, your
Context's docBase attribute references a directory rather than a .war
file)?
In unexploded mode, Tomcat still unpacks the WAR file, but
ServletContext.getRealPath(..) always returns null, as per the J2EE
spec.
Unfortunately we
Hello,
I am working with
FOP and new to this.Can u please tell me how can i create a bar chart using
FOP.
Regards,
SeshammaSr.Software
Engineer
===Sobha
Renaissance Information Technology Private LimitedAn
SEI-CMM
Thats an interesting question.
2 ideas:
1. If you knew how manycategories you were
producing, therange of the scoresand the XML document you were
processing contained the scoreof each category, you could create a table
with each cell containing a "bar.gif" that you would dynamically size
I can think of three ways, each one successively more painful than the
previous:
1. Draw it in a drawing applications and pick it up with
fo:external-graphic.
2. Create an SVG.
3. Create a table.
More about doing this as a table. Provided your data is pretty simple, you
can create a bar
I first went the route of creating JPGs (or was it GIFs) and referencing
them as external graphics, but they were quite cumbersome and a little bit
ugly. I have since changed to creating SVG from a java class and then
embedding that in my XML. Fop does a pretty good job of adding them to the
[EMAIL PROTECTED] wrote:
fo:table-column being optional is yet more reason to look forward to the
new version. Ah, spring, when we await new software growth
Automatic table layout is unlikely to happen soon. It is
a *hard* problem, and usually involves backtracking.
Note that fast table
No worries. I'm enough of a control freak to not rely on automatic layout
of anything, even in systems that let me do it.
Besides, I'm making plenty fine documents with FOP as it is, so anything
more is just a bonus anyway.
Jay Bryant
Bryant Communication Services
(presently consulting at