0
私は問題なくいくつかのPdfPTableを作成しましたが、今は何が間違っているのか分かりません。 4行目は表示されません。iTextでPdfPCellを追加するPdfPtable doesnt work do
table = new PdfPTable(4);
table.setSpacingBefore(10);
columnWidths = new float[] {60,10,10,10};
table.setWidths(columnWidths);
PdfPCell cellFooter = new PdfPCell(new Phrase("Rows One", ARIAL_12_BOLD));
table.addCell(cellFooter);
for(int k=0; k<3; k++){
table.addCell("");
}
cellFooter = new PdfPCell(new Phrase("Row Two", ARIAL_12_BOLD));
table.addCell(cellFooter);
for(int k=0; k<3; k++){
table.addCell("");
}
cellFooter = new PdfPCell(new Phrase("Row Three", ARIAL_12_BOLD));
cellFooter.setColspan(4);
table.addCell(cellFooter);
// Row Four not displayed
for(int k=0; k<4; k++){
table.addCell("");
}