By Date: <-- -->
By Thread: <-- -->

Page numbering when total pages > 1



rpaquett (at) cmhc-schl.gc.ca wrote:

Hi,

I've been trying to come up with a way to display the page number at the bottom of each page only when there is more than one page. Unfortunately, the way I figure it, you don't know the total page number until you are on the very last page, and at that time, it's too late, the rest of the document is already written.

Does anyone have any suggestions, solutions about this. I could really use a solution right about now.

That's really easy.
Add the page number in a page event, but only if the page number > 1.
br,
Bruno


------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions