Greetings Everybody,

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 if I need to change the implementation ?

This is the psuedo-code I am using.

document.open();
Phrase beforePhrase = new Phrase( "Page ", FontFactory.getFont(FontFactory.Helvetica, 10, Font.BOLD) );
for(i=0; i<10; i++)    {
    Phrase afterPhrase    = new Phrase( ("Hello " + i), FontFactory.getFont(FontFactory.Helvetica, 10, Font.BOLD) );
    HeaderFooter hdrFooter    = new HeaderFooter(beforePhrase, afterPhrase);
    document.setFooter(hdrFooter);
}
 
document.add(...);
 
...
...
...
 
document.close();
 
 
- Thanks,
 
J.U

Reply via email to