Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] UnsupportedOperationException

Bruno

2005-06-27

Replies:

linhda wrote:

>Hello everyone,
>
>In my code, console shows that error when I run following line code:
>
>bottom = table.bottom();
>
>Could you please explain briefly for me about that Error?
>
Table extends Rectangle, so it also has the bottom() method.
However: as you are constructing the table, iText only knows
about its CONTENT, nothing about its REPRESENTATION.
The representation only comes in to play once you add the table
to a document at which time all positional calculation is done.
That's why the bottom() method throws an UnsupportedOperationException.

Please explain on the mailinglist why you need to know the bottom
position of the table. Depending on your more specific question,
we will be able to point you in the right direction.

In the meanwhile, it doesn't hurt to read these tutorial chapters:
http://itextdocs.lowagie.com/tutorial/objects/tables/
http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.