Nik Kolev wrote:
One approach that I tried but did not work (keep in mind that I’ve only been using iText for 2 days before trying to kill me) is keeping track of the width of the data of each cell in a given column, using ColumnText.getWidth(Phrase p) – p being used when constructing the PdfPCell-s; and at the end doing a table.setWidths with the max width of each column.
You're in the right direction.
PDF isn't HTML, so you can't expect the table to adjust itself to the content of the cells. In other words: you have to examine the content first with something like getWidth.
Please tell us what went wrong.
br,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to