How to change width of single column of table?
hello I have created table in a PDF file using iText. The heading of my table columns are "Medicine Name", "Doses", and "time: This is what my columns look like:
|Medicin|Doses|time| | e name| | |
Posted on StackOverflow on Jun 10, 2014 by DCoder
The ColumnWidths example demonstrates different ways of changing the width of a column. This is one specific way:
PdfPTable table = new PdfPTable(3);
table.setWidths(new int[]{2, 1, 1});
Now the width of the first column is double the size of the second and third column.