Re: [iText-questions] Test if some elements fits in a page

2009-07-02 Thread Paulo Soares
The better way is to create a new ColumnText, the first one is "spent" anyway. Paulo > -Original Message- > From: natros [mailto:nat...@gmail.com] > Sent: Thursday, July 02, 2009 12:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] T

[iText-questions] Test if some elements fits in a page

2009-07-02 Thread natros
I have been doing some experiments with ColumnText to see if some iText element fits in the page. I'm witting 38 time the word "Hello" and 5 times the word "World". If the last 5 words does not fit in the page I want them in a new page. Here is what I did Document doc = new Document(); try { Pdf