It seems that that line 3 below is very slow. On average it takes 2
seconds to run. My app needs to generate 11,000 PDF's and with this code
below, it takes over a day!
Now if I comment out line 3, it finishes in 7 minutes. Big, big
difference. Does anyone know why this code is so slow, and even more
importantly, is there a way to do this better.
Thanks.
Alex
PdfImportedPage page = null;
PdfContentByte cb = PDFwriter.getDirectContent();
page = PDFwriter.getImportedPage(PDFreader, iPages);
cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0);
Alex Kruzic
Application Development Analyst, Document Solutions Department
Broadridge
Investor Communication Solutions, Canada
5970 Chedworth Way
Mississauga, ON L5R 4G5
Tel: (905) 507-5100 x 55204
Fax: (905) 507-5350
[email protected] <mailto:[email protected]>
This message and any attachments are intended only for the use of the addressee
and
may contain information that is privileged and confidential. If the reader of
the
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/