Hevn wrote:
I have a PdfPTable and I have set the widths for each column like this:
float[] widths2 = {0.14f, 0.17f, 0.14f, 0.31f, 0.08f, 0.09f, 0.07f};
Now I want the texts inside the cells to not be wrapped so I have this
line:
cell.setNoWrap(true);
What happens is the data overflows to the next cell.
That is the expected behaviour.
If on the other hand, you use setFixedHeight so that only
one line fits in the cell, then the content will not be wrapped
and the part that doesn't fit will be omitted.
Is there a way to unwrap the text inside the cell without overflowing?
If you are talking about changing the width of the cell dynamically
based on its content: No, this isn't possible.
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions