I have a document that needs to, at any point, turn off the page number.
What I do is set flags and then i have a Event Handler with a onEndPage()
function with this code:

HeaderFooter footer;
if(isDisplayed){
    footer = new HeaderFooter(new Phrase("", new Font(Font.TIMES_NEW_ROMAN,
Font.DEFAULTSIZE, Font.NORMAL)), true);
}else{
    footer = new HeaderFooter(new Phrase(""), false);
}
footer.setAlignment(HeaderFooter.ALIGN_CENTER);
footer.setBorder(footer.NO_BORDER);
document.resetFooter();
document.setFooter(footer);

It works, but it changes the footer on the page after the current one, even
if it's handled within onParagraphEnd().  Is there a way to change the
header of the page I'm on while I'm in the middle of the page?

Thanks,
Matt



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to