Hello,
I'm coding methods in order tu reuse the HeaderFooter functions. But
I have a strange issue: they appear on all pages
with the right number of page, but i have nothing on the first one.
Any idea??
Following the 2 methods and the main call
public PDFHeader(String lsTexte, boolean lbNumPage, String lsType)
{
if(lbNumPage == true)
{
moHeader = new HeaderFooter(new Phrase(lsTexte),true);
}
else
{
moHeader = new HeaderFooter(new Phrase(lsTexte),false);
}
msHeaderType = lsType;
}
_________
public void write(PDFDocument monDoc)
{
Document PDFDoc = monDoc.getPDF();
if(msHeaderType==PDFConst.FOOTER)
{
PDFDoc.setFooter(moHeader);
}
else
{
PDFDoc.setHeader(moHeader);
}
}
------------
call:
PDFHeader monHeader = new PDFHeader("OK",true,PDFConst.HEADER);
monHeader.ecrire(monDoc);
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions