set the table cell width in iText java pdf
Here is the corrected one if table.setWidths(new int[]{200,50});
does not work.
innertable.setWidthPercentage(50);
You can make use of setWidths() method.
table.setWidths(new int[]{200,50});
public void setWidths(int[] relativeWidths)
Try this.
float[] columnWidths = new float[]{10f, 20f, 30f, 10f};
table.setWidths(columnWidths);