There's an example in the tutorial that describes how to auto-split tables
using your own code. It's described for large memory intensive tables.

In a nutshell, after you add a line to the table, call
writer.fitsPage(table) and see if it fits the page. If it does, continue
adding lines. If it doesn't, delete the last line (make sure you save it),
then write the table to your document.  After you've written it, add a
paragraph with your "\n", and then continue on.  You will then need to start
a new table, and continue adding lines to it.

Incidentally, I recommend using a small buffer when asking if it fits the
page (e.g., 2f).  If you don't, you may get unexpected results.

Good luck!

Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Didier
Bretin
Sent: Tuesday, October 21, 2003 2:56 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Table bigger than one page {Scanned}


Hello,

I have a Table which is bigger as one page, so the PDF generation
split the table between all the page. It's a good feature ;).

But I would like to add on each page before the beggining of the
Table a new line, sort of document.add ( new Phrase ( "\n" ) );

How can I do this ?

I need this fetaure, because I have an image on the left-top corner
of each page, and this image apparears on the beggining of the splitted
Table.

Regards.
--
            .------------------------------------------------.
    .^.     | Didier Bretin, France | [EMAIL PROTECTED]    |
    /V\     |-----------------------| www.informactis.com    |
   // \\    |                       `------------------------|
  /(   )\   | Visit: http://www.vim.org/                     |
   ^^-^^    `------------------------------------------------'




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to