| By Date: | <-- --> |
| By Thread: | <-- --> |
How do I create a nested table containing a cell with 2 column span. What is wrong with the following code:
float[] widths = {0.15f, 0.10f, 0.10f, 0.10f, 0.10f};
PdfPTable t = new PdfPTable(widths);
PdfPTable nestedTable = new PdfPTable(2);
cell = new PdfPCell(new Paragraph("(Some Label)",FontFactory.getFont(FontFactory.HELVETICA, 5)));
cell.setFixedHeight(20f);
cell.setColspan(2);
cell.setGrayFill(0.75f);
nestedTable3.addCell(cell);
t.addCell(nestedTable3);
_______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions