Well - try not to make the table so big :)
Seriously, you can get the exact same effect as a big table by using multiple smaller tables with the right options. See the example "ExampleLargeTable.java" in the bundle examples-147.zip at itextpdf.sf.net.
----- Original Message ----- From: "Liao, Shangshin" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Cc: "Liao, Shangshin" <[EMAIL PROTECTED]>
Sent: Tuesday, January 04, 2005 6:37 PM
Subject: [iText-questions] Performance Issue on Document.add() function
Hi, The function in question takes at least 10 seconds if the size of bigTable is more than 1 mega.( plz see sample code below)
com.lowagie.text.Document pdfDocument = new com.lowagie.text.Document(PageSize.LETTER.rotate()); PdfPTable bigTable = new PdfPTable(10); pdfDocument.add ( bigTable );
My computer has a 3G cpu and 1G memory.
I am wondering if there is a way for optimization.
Thanks Shangshin Liao
[EMAIL PROTECTED]
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions