处理方法:
- PdfPTable table = new PdfPTable(1);
- table.setSplitLate(false);
- table.setSplitRows(true);
开发中的例子:
document = new Document();
String separator = System.getProperties().getProperty("file.separator");
out = new FileOutputStream(Const.getSystemExchangePath() + separator + fileName + ".pdf");
PdfWriter.getInstance(document, out);
document.open();
table = new PdfPTable(4);
table.setWidthPercentage(100);
table.getDefaultCell().setPadding(6);