Quoting Robot robot <[EMAIL PROTECTED]>: > Hi, > > Is it possible to set a table as a header?
Yes, but the result is very disappointing in most cases if you use the HeaderFooter object. Use PageEvents in combination with a PdfPTable at an absolute position. > I've tried to take a look in tutorial session but it just insert a phase. HeaderFooter is a very simple class. > Besides, I've also tried to use the following code but it seems no use. > > document.add(table1); > table1.endHeaders(); You are confusing the headers of a page, with the column headers of a table (in HTML: <th>-tag). You can use endheaders if you have a Table that spans multiple pages and you want to repeat the column headers. It has nothing to do with the headers of a page... Bruno ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
