|
|
@@ -64,14 +64,6 @@ public class PdfUtil {
|
|
|
return cell;
|
|
|
}
|
|
|
|
|
|
- //底部无边框的单元格
|
|
|
- public static PdfPCell createPDFCellWithoutBorder(Font tableFont, PdfPTable table, String content, int align, Integer colspan, Integer rowspan) {
|
|
|
- final PdfPCell cell = cell(tableFont, content, align, colspan, rowspan);
|
|
|
- cell.setBorder(Rectangle.LEFT | Rectangle.RIGHT);
|
|
|
- table.addCell(cell);
|
|
|
- return cell;
|
|
|
- }
|
|
|
-
|
|
|
private static PdfPCell cell(Font tableFont, String content, int align, Integer colspan, Integer rowspan) {
|
|
|
PdfPCell cell = new PdfPCell(new Phrase(content, tableFont));
|
|
|
if (colspan != null && colspan > 0) {
|
|
|
@@ -292,7 +284,7 @@ public class PdfUtil {
|
|
|
//证件图片
|
|
|
createPDFCell(tableFont, table, "证件图片", Element.ALIGN_CENTER, 1, 70);
|
|
|
//演练情况 图片填充
|
|
|
- final PdfPTable imageTable1 = getImage((List<String>) data.get("imageFile"), 10,80,80,4);
|
|
|
+ final PdfPTable imageTable1 = getImage((List<String>) data.get("imageFile"), 2,150,150,2);
|
|
|
final PdfPCell cell1 = new PdfPCell();
|
|
|
cell1.setNoWrap(false);
|
|
|
cell1.setPaddingLeft(8f);
|
|
|
@@ -305,7 +297,7 @@ public class PdfUtil {
|
|
|
cell1.addElement(imageTable1);
|
|
|
table.addCell(cell1);
|
|
|
createPDFCell(tableFont, table, "介绍信附件", Element.ALIGN_CENTER, 1, 70);
|
|
|
- final PdfPTable imageTable2 = getImage((List<String>) data.get("file"), 10,80,80,4);
|
|
|
+ final PdfPTable imageTable2 = getImage((List<String>) data.get("file"), 2,150,150,2);
|
|
|
final PdfPCell cell2 = new PdfPCell();
|
|
|
cell2.setNoWrap(false);
|
|
|
cell2.setPaddingLeft(8f);
|
|
|
@@ -318,7 +310,7 @@ public class PdfUtil {
|
|
|
cell2.addElement(imageTable2);
|
|
|
table.addCell(cell2);
|
|
|
createPDFCell(tableFont, table, "身份核验材料", Element.ALIGN_CENTER, 1, 70);
|
|
|
- final PdfPTable imageTable3 = getImage((List<String>) data.get("checkImage"), 10,80,80,4);
|
|
|
+ final PdfPTable imageTable3 = getImage((List<String>) data.get("checkImage"), 2,150,150,2);
|
|
|
final PdfPCell cell3 = new PdfPCell();
|
|
|
cell3.setNoWrap(false);
|
|
|
cell3.setPaddingLeft(8f);
|