Yves Goergen wrote:
> On Wed, 30 Sep 2009 12:46:18 +0200, 1T3XT info <[email protected]> wrote:
>> Yves Goergen wrote:
>>> Sorry, after reading the first few examples and the entire API
> reference
>>> for the ColumnText class, I cannot see how this should in any way be
>>> helpful to me. This class doesn't have any members that do things like
>>> flow
>>> control or space measuring.
>> ???
>> You obviously didn't read chapter 7 of "iText in Action". ColumnText is 
>> THE object you need to check if a sequence of objects fits the page.
> 
> No, I didn't read chapter 7, supposedly from a book. I don't have access
> to that book.

You have access to that book for $29.99: http://www.1t3xt.com/docs/book.php
That's less than the value of the time you've lost trying to find out 
how iText works on your own. It always makes me sad to see how many 
money is waste in an attempt to save money.

> I only read the pages following the link you gave me. This
> time I've read all the examples and I still state that they don't do what I
> was asking for. If I'm wrong, could you please explain why?

The concept of ColumnText is that you add content:
- a table,
- images,
- Paragraphs,...
You define where they should be positioned on the page
(as opposed to what you say, getVerticalPosition(true) returns
the current position on the page).

Then you invoke go(true) = simulation mode.
If the ColumnText object is empty: all the content fits the rectangle!
You can fill the ColumnText again, and perform go() for real.

If there's still content left in the ColumnText object,
you know that it didn't fit the rectangle (or page);
so you need to invoke a new page.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to