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 andrew mercer <an...@sundayta.com> on 2003/03/14 15:43:44 UTC
Converting XML-FO
Hi,
I am looking for code as an example as to how I can convert an xml file
to a .fo file before converting this file to a pdf file.
I have been going straight from a xml -> pdf keeping the .fo in memory
using the example on the FOP web site. However there is a major
exponential memory issue with large files that cause them to either run
out of java memory (currently I set this to amximum of 512m) or take
forever to finish.
I therefore want to do the process in two stages.
It says on the FOP web sites that I can find examples in the extracted
download at: xml-fop/examples/embedding. However I do not have this
directory in either version 0.20.3 or 0.20.4 or in the source download
for 0.20.4.
Am I doing something wrong or can I be pointed in the right direction or
can a sample of code be sent.
I will continue looking on the FOP archive but have not found anything
so far.
Thanks for your help in advance.
Andrew
--
Andrew Mercer, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Converting XML-FO
Posted by Jeremias Maerki <de...@greenmail.ch>.
On 14.03.2003 15:43:44 andrew mercer wrote:
> I am looking for code as an example as to how I can convert an xml file
> to a .fo file before converting this file to a pdf file.
>
> I have been going straight from a xml -> pdf keeping the .fo in memory
> using the example on the FOP web site. However there is a major
> exponential memory issue with large files that cause them to either run
> out of java memory (currently I set this to amximum of 512m) or take
> forever to finish.
Won't help you much. You just put an additional serialization and
parsing step in between. It most probably won't solve your memory issues,
only slow down the whole process. Check the mailing list archives for
better solutions.
> I therefore want to do the process in two stages.
>
> It says on the FOP web sites that I can find examples in the extracted
> download at: xml-fop/examples/embedding. However I do not have this
> directory in either version 0.20.3 or 0.20.4 or in the source download
> for 0.20.4.
The examples are available from version 0.20.5rc on and via CVS.
> Am I doing something wrong or can I be pointed in the right direction or
> can a sample of code be sent.
>
> I will continue looking on the FOP archive but have not found anything
> so far.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org