W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

Re: How to avoid using too much memory to create relatively large PDF file

From: Tim <tfraser@miray.jeffsys.net>
Date: Wed, 14 Nov 2001 09:43:47 -0500 (EST)
To: Xingjian Shangguan <shangguanhe@hotmail.com>
cc: <www-xsl-fo@w3.org>, Max Froumentin <mf@w3.org>
Message-ID: <Pine.LNX.4.33.0111140940070.14952-100000@miray.jeffsys.net>

Are you using DOM to store your XML documents??  DOM needs a lot of
resources in order to build and store the document tree.  SAX, on the
other hand, is much less resource intensive.  Try looking at SAX as a
possible solution....

-TIM

>
> Hi,
>
> I am using most recent FOP, Xalan and Xerces to create PDF from the
> relatively large amount of data from database.
>
> The program works like this: I first get data from database, produce XML and
> use Xalan to process xml to create FO, then I use FOP to create PDF file.  I
> am able to create PDF files without any problem, however, I need to manually
> allocate a lot of memory to process the FO (like 80M).  The vast amount of
> memory is needed when FO is processed to create PDF file.  Does any one have
> any idea how can I avoid occupying too much memory.
>
> Thanks in advance for your suggestion.
>
> Sean
>
> ====================
> Xingjian Shangguan
> (732) 424-3980 (H)
> (732) 718-9522 (C)
> (212) 622-3098 (O)
> ====================
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
>
Received on Wednesday, 14 November 2001 09:39:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT