Greetings Everybody,
Please ignore my previous email.That was an accidental "Send" :-(
I am trying to add a footer with new content to every new page, I add to the
document.
This works very well for PDF documents, but in case of RTF documents, the
footer content I used for the last page overwrites the footer content for
all the pages.
Has anybody encountered this problem before ? Is this a bug or do I need to
change the way I am implementing this ?
This is the psuedo-code I am using:
document.open();
Phrase beforePhrase = new Phrase( "Page ",
FontFactory.getFont(FontFactory.Helvetica, 7, Font.BOLD) );
for(i=0; i<10; i++) {
document.newPage();
Phrase afterPhrase = new Phrase( ("Hello " + i),
FontFactory.getFont(FontFactory.Helvetica, 7, Font.BOLD) );
HeaderFooter footer = new HeaderFooter(beforePhrase, afterPhrase);
document.setFooter(footer);
document.add(...);
...
...
...
}
document.close();
- Thanks,
J.U
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions