R.Greg wrote: > Here's what I want: > > - A footer > - With user-defined, centered text > - And a right-aligned page number
That's explained in Chapter 14 of the book. > I've managed to create a multi-line footer, but both the text and the page > number are right-aligned. Is it just wishful thinking at this point, or can I > somehow modify the footer's data, perhaps by creating my own HeaderFooter > class, > to get the desired results? The HeaderFooter class has not been documented in the past 3 years. It's not mentioned in the free online tutorial; it's not mentioned in the book. There's a reason for that: using class HeaderFooter is very disappointing for people who need what you descibed above. > Ideally, the user-defined text will be centered on the same line as the page > number. It would be acceptable for them to be on different lines, if I can at > least get the formatting like I want it. If you want the formatting like you want it, adapting HeaderFooter is certainly not the way to go. You should use page events as described in the free tutorial and the book. I admit that the presence of the HeaderFooter class is confusing, but it's there because for backward compatibility. Reading the documentation (the book or http://itextdocs.lowagie.com/tutorial) before starting to work with iText is not a waste of time. You'll save a lot of time on the long run! best regards, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
