|
@@ -49,6 +49,9 @@ public class ItextPdfUtils {
|
|
|
twoTable.setWidthPercentage(widthPercentage);
|
|
|
//设置每页占满
|
|
|
twoTable.setSplitLate(false);
|
|
|
+ if (text == null) {
|
|
|
+ text = "";
|
|
|
+ }
|
|
|
String[] split = text.split("\n");
|
|
|
for (String s : split) {
|
|
|
PdfPCell cell = pdfTableStyle2(s, size10font);
|