On 6/09/2010 14:31, Paul Norris wrote: > 1) I keep seeing references to a HeaderFooter class but I can't find any > reference to it in the API JavaDocs, or in the source code. Does this > mean that the HeaderFooter class is not part of the iText library? Would > HeaderFooter be useful for dynamic headers and footers?
The HeaderFooter class has been removed. It was deliberately omitted in the first book about iText (written in 2005-2006). It goes without saying that it isn't mentioned in the second edition (written this year). People using HeaderFooter are using obsolete and/or rogue documentation. > 2) Can Table.setHeaderRows and Table.setFooterRows be used for dynamic > headers and footers? It depends. If the header and footer is the same for all the pages in the document, then you could do that, but there are flaws. For instance: the textual content is repeated on each page (and that's not efficient). > 3) Neither of those things any good? Well, I guess I can cope with > direct content. The best way to create headers and footers is by using page event. This doesn't mean you have to do all the math to position text, calculating the length of every String. You can easily use ColumnText or PdfPTable to add the headers. There are some examples in the second edition of "iText in Action." ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
