jjzjj

ExceptionConverter

全部标签

java - ExceptionConverter : java. io.IOException : The document has no pages. 我正在使用 iText

当我执行下面的代码时Filef=newFile("c:/sample.pdf");PdfWriter.getInstance(document,newFileOutputStream(f));document.open();System.out.println("openingthedocument..");PdfPTableheaderTable=newPdfPTable(9);PdfPCellcellValue=newPdfPCell(newParagraph("Header1"));cellValue.setColspan(1);headerTable.addCell(cellV