tags:

views:

43

answers:

1

I’m using iText to generate a PDF document in my JEE application. Coding for the PDF file is reside in a JSP.

I want to achieve the following page formatting in my each page footer,


REF: XXXXXXX                                                           Page X of Y


How can I get Page X of Y

A: 

There is a sample here: http://faq.javaranch.com/java/ItextExample

In a nutshell, you create a Header/Footer class with an onPageEnd event to add a header or footer.

Eric Darchis
You apparently found a sample already as you asked a more specific question: http://stackoverflow.com/questions/3923363/java-itext-footer
Eric Darchis