I want to create a PdfPTable with columns containing strings of different lengths. I found out that the width of each cell / column is the same for each column (by default), or you can specify the fraction of the space that each column should occupy.
However, I want the columns to be as wide as possible, but not wider, depending on the data inserted. Suppose a table fits easily on a page (no breaks!). Of course, I can manually execute all my data and calculate the maximum row length of each column by setting the table properties accordingly, but I wondered if such a general parameter was already provided by this text itself.
steffen
source share