Op 14/02/2011 11:24, Anthony Webster schreef:
1&2 But then I wouldn't be able to fill a field with the total number of pages no?
That's solved in the "Page X of Y" example in chapter 5. You provide a PdfTemplate that will act as a placeholder.As soon as you know the total number of pages, you add it to the PdfTemplate.
3. No reason. Why would that make a difference?
You were asking for the most efficient way to create the PDF. You're now creating it in three passes (which is fine). You could create it in one pass (which may not be necessary).
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
