See http://www.lowagie.com/iText/examples/Chap0401.java.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 11:29
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Header or Footer missing on first page
>
> 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
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions