I believe that usually when the Header and Footer
don't show up on the first page it is because the code
opens the document prior to setting these in the
document. Add the header and footer first, then call
document.open();
Apologies if this is not the problem.
-Matt
--- [EMAIL PROTECTED] wrote:
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions