Alexis Pigeon a écrit :
Hi Séverine,
On 24/04/2008, Séverine Colin <[EMAIL PROTECTED]> wrote:
Hello,
I generate a document with a table divided in two parts because of page
break. My problem is the content of the table on the second page is
shifted compared with the table borders. I know the problem comes from
the header of the document that is added after the document opening.
When I add the header before opening the document, I do not have the
problem but I don't want header on the first page.
Here is my code:
[snip]
The classes Table and HeaderFooter are not maintained anymore, and are
present only for backwards compatibility. The preferred way to handle
tables is by using PdfPTable, and page events to handle headers.
You'll find all the documentation you need here:
- PdfPTable : http://itextdocs.lowagie.com/tutorial/objects/tables/index.php
- page events :
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php
Hope this helps,
alexis
We used page events and it is ok,
Thank you
Séverine
|
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar