--- "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> wrote:
> Are you building a PDF from scratch,
> or are you manipulating an existing PDF?
> Are you using iText's 'basic building blocks'
> or are you creating all the content using
> the direct content mechanism?
> 

I'm building PDFs and RTFs from scratch, using basic building blocks.  The
content is a set of results from a query, streamed from an external system. 
The output documents are likewise streamed to the client.  The result sets can
be quite large and there can be many users trying to do this simultaneously. 
The more results-per-document and the more users I can handle, the better.  The
more efficient I can make the processing, the less I have to resort to
deployment strategies in order to achieve scalability.

> As opposed to for instance FOP, iText flushes
> the page content as soon as a page is completed;

This is encouraging.

> but it keeps some data structures in memory:
> the document catalog and the cross-reference table.
> The cross-reference table is the object that risks
> to consume the largest amount of memory: it keeps
> the byte offset of every object in the PDF and as
> defined in the PDF specs, it's written at the end
> of the PDF document, after the PDF body, and before
> the PDF trailer.

Okay.  I'm really ignorant of the PDF spec, so I didn't know that.  Obviously,
there is only so much you can do in the library, in light of the spec.  At this
point, I'm just looking for advice on how to use the library as efficiently as
possible, where the memory footprint is the highest priority.

Thanks for you help,
Mike


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to