I was aware of the ColumnText object, but not the PdfPTable object.
I'll check it out in the Javadoc and will use the method that you
recommended.

Thanks so much!

Scott

On Thu, Nov 6, 2008 at 11:59 PM, 1T3XT info <[EMAIL PROTECTED]> wrote:
> Redefined Horizons wrote:
>> Let me first say that the IText library is one of the best Java
>> libraries that I have ever had the pleasure of working with, and the
>> IText book one of the easiest tech books I've come across.
>
> Thanks!
>
>> I'll be using IText to generate the report page as a PDF. I'll need to
>> put a table with the data from the geospatial object on the report. I
>> need to know at runtime if the table will fit on a single page, or if
>> I will need to create two tables, placing the additional table on a
>> second page.
>
> Please don't use Table, use PdfPTable.
> Create the PdfPTable and put it in a ColumnText object.
> Perform go() in simulation mode.
> Ask the ColumnText if there's any content left.
> If there is, the table doesn't fit.
> If there isn't, the table fits the page.
>
>> I see that Table extends Rectangle, and that I can get the size of a
>> rectangle. Does this size account for any borders or other styling
>> that may be applied to the table or the table's cells?
>
> PdfPCell (only to be used with PdfPTable) allows you to
> do plenty of things with borders (see chapter 10 to find
> out how to make borders with rounded corners).
> Cell only supports what is supported in the Rectangle class.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Reply via email to