von462 wrote:
> Hi,
>
> I am trying to replace my old code for adding footer to a page to make it
> compatible with the new version(5.0.1), which does not support HeaderFooter
> class anymore. My existing code looks like this:
>
> HeaderFooter footer = new HeaderFooter(new Phrase("page: "), true);
> footer.setBorder(Rectangle.NO_BORDER);
> footer.setAlignment(2);
> document.setFooter(footer);
HeaderFooter hasn't been supported since 2005.
There's no mention of it in the first edition of the book.
If you look for Headers/footer on the keywords list on 1t3xt.info,
you'll find some examples: http://1t3xt.info/tutorials/keywords/
http://1t3xt.info/tutorials/keywords/?page=keyword&id=290
If you want an iText 5 example, page events are explained in
chapter 5: http://itextpdf.com/examples/index.php?page=toc&id=5
For instance: this is a "Page X of Y" example:
http://itextpdf.com/examples/index.php?page=example&id=104
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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/