Problem with controlling cell heights with the Table Class

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with controlling cell heights with the Table Class

by Rizwanur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, i am using the Table class for generating tables in Pdf. Due to certain limitations i am not able to use the PdfPTable class. But using the Table class I am not able to control the cell heights. I am able to control the height by using the setLeading method. But this works only when the text in a cell is of a single line. In case there is wrapping in the cell, then this method doesn't work. Is there any way to control the cell heights using the Table class.

Re: Problem with controlling cell heights with the Table Class

by Bruno Lowagie (iText) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rizwanur wrote:
> Is there any way to control the cell heights using the
> Table class.

No, there isn't.
The only workaround I know of, would be to add the
text to a PdfTemplate and create a Cell with this
template wrapped in an Image.
But isn't this overkill? You're better of with PdfPTable.
br,
Bruno


-------------------------------------------------------------------------
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
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions