PdfPTable table = new PdfPTable(1);
table.setSplitLate(false);
table.setSplitRows(true);
本文介绍如何使用PdfPTable组件创建不拆分单元格但允许拆分行的表格。通过设置table.setSplitLate(false)确保表格单元格不会被拆分,而table.setSplitRows(true)则允许表格在必要时跨页拆分行。
PdfPTable table = new PdfPTable(1);
table.setSplitLate(false);
table.setSplitRows(true);

被折叠的 条评论
为什么被折叠?