Hi Daniele, On 01/07/2008, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > Hi. > > We are trying to use the HeaderFooter with a simple: > > HeaderFooter header = new HeaderFooter(new Phrase( > "Header"), false); > header.setAlignment(Element.ALIGN_CENTER); > document.setHeader(header); > > but the header does not appear at all. The setFooter does not work the > same way.
AFAIK, HeaderFooter is present in iText just as a legacy class, and is not maintained anymore. Therefore, you shouldn't expect any support for it, I fear. > There is some things I am missing about HeaderFooter usage? > I know that there is the event mechanism to handle with header and > footer but it seems more complicated and a simple header could work > for us. It might look a bit more complicated at first sight but : - it's the preferred way to handle headers and/or footers - it's currently supported and actively maintained - you'll find out that once you understand how it works, you'll wonder how one could use the old HeaderFooter class instead ;) Cheers, alexis ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar