Hi,
For my table, I'm using PdfPTable, so I will be able to get the total height of my table.
Now I need to know other thing.
I need to know the height that a piece of text will use when write them to my pdf document. I know the width of my text box but I can't find a way to get where the text finish. I need to know because I need to put something right after the end of the text (an image, a table, other text box).
Thanks
Rodrigo
Bruno Lowagie <[EMAIL PROTECTED]> escreveu:
Bruno Lowagie <[EMAIL PROTECTED]> escreveu:
Develop wrote:
> Hi,
>
> I need to know the height in points of my table and the text inside a
> text box.
I repeat the counterquestion: are you using PdfPTable or Table?
If your question is about PdfPTable, the answer depends on the
REASON why you need to know the height in points:
- using a cell/table events can solve many problems
- there is also table.getRowHeight(i);
it will give you the height of each row ( = height of the cells
in the row); if you make the sum, you have the height of the
table. But remember that the height can't be calculated if you
don't define the width (the method will return 0 in this case).
The answer could be much more complex, but as long as you
don't specify what you exactly want, this is the best answer I can give.
br,
Bruno
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
