Zhi Ren wrote:

>Hi, 
>
>I have a question: in iText, PdfDocument class has two
>functions: setHeader(HeaderFooter header)  and
>setFooter(HeaderFooter footer), I guess I can use the
>functions to add header/footer into a PDF document.
>But, in iText website, you use PdfPTable and EndPage
>event to add header and footer. I am not sure, which
>method I should use? or which method is preferred?
>
>Thank you for your time!
>
The HeaderFooter class is not documented because it is very old.
It's still there because 'it serves a purpose', but its functionality is
very limited. Using page events (specifically the onEndPage method)
is preferred to add headers and footers.
best regards,
Bruno


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to