Caballero Caballero, Jose wrote:
I tried but i cant do it. I calculate the number of page with the
OnStartPage event and in the OnCloseDocument event I add the footer but,
This isn't very logical. You should add the footer in the onStartPage
and fill in the total number of pages in the OnCloseDocument.
in
this case, the footer don't appear in the pdf file because (it looks) you
must to add the footer in the beginning of the document or of the page, so,
How can obtain the number of pages in the beginning? Any idea?
You obviously didn't read the Romeo and Juliet example.
The answer is there: the footer contains a PdfTemplate: an empty holder
for the total number of pages. You fill this PdfTemplate as soon as you
know the total number of pages (at the end, not in the beginning).
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions