Mike Colbert wrote:
> 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.

OK,
stay away from memory consuming objects like Chapter and Section.
Use PdfPTable if your query needs to be presented in tabular form,
but follow the tips and tricks mentioned in the tutorial to keep
the memory usage low (don't wait to add the table to the document
till you have added all the rows).
Basically, your biggest concern should be to add the basic building
blocks 'as soon as possible' to the document, and make sure they
don't remain in memory after they've been added.
br,
Bruno

-------------------------------------------------------------------------
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