Nathan Maves wrote:
I have a servlet (struts) that returns a generated chart.
What is the best/simplest way to get this into a pdf?
...
<fo:external-graphic src="url(http://localhost:8080/ ScoreCard/View/MetricChart.do)"/>

In general, this should work.
...
[ERROR] Could not load external SVG: Premature end of file.
[ERROR] Error while creating area : No ImageReader for this type of image (http://localhost:8080/ScoreCard/View/MetricChart.do)

The image reader was't able to determine the image type,
or got some other problem. Check the instructions in the FAQ
 http://xml.apache.org/fop/faq.html#graphic-not-displayed
in particular:
- Check whether you can display the image in a browser
- Download a generated image into a file and try to use it
 from this file (i.e. check whether the problem is with the
 content of the image itself or whether it has somethiing to
 do with being loaded via HTTP).
- If the problem is the image itself, try to open it in another
 graphics viewer in order to get more information about what
 might be wrong
- If the problem is with image delivery, well, fix them. A missing
 session cookie is a likely candidate for the cause.

J.Pietschmann

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

Reply via email to