Discussion:
[iText-questions] Table height
g\.dibari\@libero\.it
2007-02-02 11:22:40 UTC
Permalink
Hy!

I've a problem: I write a table in a pdf document with writeSelectedRows. I need to know the total height of the selected rows, i.e. the height that the table has in the current page.

How do I do?

Thank you!!


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada02feb07
GAMBELLI Raffaele
2007-02-02 11:34:06 UTC
Permalink
If your table is a PdfPTable you can use getTotalHeight() method...

Saluti

Raffaele

-----Original Message-----
From: itext-questions-***@lists.sourceforge.net
[mailto:itext-questions-***@lists.sourceforge.net]On Behalf Of
***@libero.it
Sent: venerdì 2 febbraio 2007 12.23
To: itext-questions
Subject: [iText-questions] Table height


Hy!

I've a problem: I write a table in a pdf document with writeSelectedRows. I need to know the total height of the selected rows, i.e. the height that the table has in the current page.

How do I do?

Thank you!!


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada02feb07



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Bruno Lowagie (iText)
2007-02-02 11:36:11 UTC
Permalink
Post by GAMBELLI Raffaele
If your table is a PdfPTable you can use getTotalHeight() method.
He is using writeSelectedRows, so it is a PdfPTable.
For getTotalHeight to work, setTotalWidth has to be set first.
br,
Bruno

Loading...