You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Doray, Arnold" <a....@geos.com> on 2002/09/05 10:56:32 UTC

Rendering multi-component documents

Dear All,

I'm a new to FOP and I've hit a snag. I'd be grateful for any help:

I have a single XML document that I want rendered to PDF.
This PDF has  textual and graphics portions, all derived from
the same input XML document. To do the rendering, I have to run 
FOP a few times, first to convert the XML to graphics (in my case, SVG), 
then once more to convert the input XML to the final PDF, where the 
graphics are "attached" using <fo:external-graphic>. Of course, the 
input XML has hardcoded in it the file names of the SVG graphics.

Is there a way to create the final PDF, complete with graphics by
calling FOP just once? Preferably, the solution wouldn't have to require
hardcoding the file names in the input XML. 

Thanks,
Arnold Doray


Re: Rendering multi-component documents

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Doray, Arnold wrote:
> I have a single XML document that I want rendered to PDF.
> This PDF has  textual and graphics portions, all derived from
> the same input XML document. To do the rendering, I have to run 
> FOP a few times, first to convert the XML to graphics (in my case, SVG), 
> then once more to convert the input XML to the final PDF, where the 
> graphics are "attached" using <fo:external-graphic>. Of course, the 
> input XML has hardcoded in it the file names of the SVG graphics.
> 
> Is there a way to create the final PDF, complete with graphics by
> calling FOP just once? Preferably, the solution wouldn't have to require
> hardcoding the file names in the input XML. 

You can embed SVG as fo:instream-foreign-object in the FO.
There should be an example for this somewhere in the
docs/examples subtree.

J.Pietschmann