Timo Biedenbender wrote:

> The tables should be generated dynamically.

OK.

> They can have different number of columns and the columns can have 
> different widths. I think, the easiest way to do this, is to generate 
> a table with automatic-widths of the columns (like in HTML), because i 
> want to use a proportional font.

PDF (and iText) doesn't work like HTML,
so what you ask for is not possible with iText.
However, if you are working with a proportional font,
you can estimate the width of the content in the cell
in advance based on the dataset you intend to put
in the table. You can then use setWidths to define
the column widths.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to