Thanks for the reply, but I cannot find examples of what I want to do.
I am trying to create a PDF report that has a graph at the top and a table of data underneath. I generate the Graph and the rest of the report XML in
java and then pull them together in a PDF with FOP and XSLT.
At first, i used a jpeg for the graph (created by JFreeChart) and I could add that using fo:external-graphic. However, the graph was blurred so I decided to try and use SVG as I can create an SVG file from JFreeChart.
If I do this with the SVG file, where $graph_img1 is my .svg file:
I get :
[Fatal Error] :1:40: Invalid encoding name "Cp1252".
22-Jul-2008 19:56:06 org.apache.fop.image.analyser.ImageReaderFactory make
WARNING: No ImageReader found for file:C:/Work........graph1.svg If I try and do this where svgString is the whole svg XML starting from <svg....
I get
Error(Unknown location): fo:instream-foreign-object is missing child elements.
Required Content Model: one (1) non-XSL namespace child Have you got any suggestions.
Many thanks
matt