Jeremias,
I cc you, hope I can get some advice from you, since you have a lot of
experience about the custom image loaders.
My project needs create a lot of images and charts on the fly and put them in a
pdf report in the end. I took your advice last time (See "image loading
callback" back in July), wrote the preloader, loader and loader factory for
both BufferedImage and JFreeChart using fop 1.0. The BufferedImage one works
out nicely, the images display fine, the same as what is in Swing Panel. But
when I took the same approach for the charts, JFreeChart does not show the
content curves, while the same code put in a Swing panel display fine. I
suspect there are bugs in fop that prevent it displaying, but could not figure
how to fix it. Your insight will be highly appreciated.
The line in xsl-fo related to it is:
<fo:block>
<fo:external-graphic src="url('chart/cwf/')"
content-width="300pt" />
</fo:block>
Environment: Window 7, fop 1.0, Java 6.
There is no any error message in the trace, the customer preloader and loader
all gets called, everything runs fine, except when you open the generated pdf,
it show the error message, and the content curve is missing. I tried to
preflight the pdf, there is no error observed either.
Thanks
Jing
-----Original Message-----
From: Pascal Sancho [mailto:[email protected]]
Sent: Wednesday, September 21, 2011 2:50 AM
To: [email protected]
Subject: Re: JFreeChart does not display the data
Reading back the properties of your attached PDF, I realize that it is made
with FOP 1.0 and it is buggy when reading it.
So, I apologize for my too quick preceding answer.
Anyway, you should give further information:
- short XSL-FO that demonstrates the issue
- trace or log, if any
- environment, process, etc.
Le 21/09/2011 08:43, Pascal Sancho a écrit :
> Hi Jing,
>
> I suspect you ask on wrong list, no? IIUC, I see nothing to do with
> FOP in your question.
>
> Le 20/09/2011 18:06, Li, Jing a écrit :
>> Dear All,
>>
>>
>>
>> I am working on a project that generates a lot of JFreecharts on fly
>> and put them in a PDF report.
>> I wrote a preloader, loader and source, and for unknown reason, the
>> chart only shows the coordinates, legends, etc, but NO DATA curves.
>> See the attachment.
>> I feel confused, any help or suggestions will be highly appreciated.
>>
>> Thanks
>> Jing
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]