当table1插入图片时,pdf无法生成
PdfPTable table = new PdfPTable(3);
PdfPTable table1 = new PdfPTable(3);
table1.addCell("1");
table1.addCell("2");
Image img = Image.getInstance("D:/abing.png");
table1.addCell(img);
table.getDefaultCell().setColspan(3);
table.addCell(table1);
document.add(table);
当这样可以正常运行
PdfPTable table = new PdfPTable(3);
PdfPTable table1 = new PdfPTable(3);
table1.addCell("1");
table1.addCell("2");
table1.addCell("3");
table.getDefaultCell().setColspan(3);
table.addCell(table1);
document.add(table);