Jelajahi Sumber

pdf文档生成内容修改

M墨鱼—_mo 5 tahun lalu
induk
melakukan
b48b96553c

+ 3 - 3
picc-common/src/main/java/com/jpsoft/picc/modules/common/utils/ItextPDFUtil.java

@@ -167,7 +167,7 @@ public class ItextPDFUtil {
     // 生成PDF文件
 
     public void generatePDF(Document document,InsuranceApplication insuranceApplication, List<Map<String,Object>> mapList,List<InsurancePolicyMember> list,String logoUrl) throws Exception {
-     //   Image image1 = Image.getInstance("C:/Users/Administrator/Desktop/picc/logo.png");
+      //  Image image1 = Image.getInstance("C:/Users/Administrator/Desktop/picc/logo.png");
         Image image1 = Image.getInstance(logoUrl);
         Paragraph p1 = new Paragraph("", titlefont);
         //设置文字居中 0靠左   1,居中     2,靠右
@@ -355,8 +355,8 @@ public class ItextPDFUtil {
 
 
         PdfPTable table2 = PdfTable.createTable(new float[]{70, 70, 70, 70, 70, 110});
-        table2.setSpacingBefore(20F);
-        table2.setSpacingAfter(90F);
+        table2.setSpacingBefore(10F);
+    //    table2.setSpacingAfter(90F);
         table2.addCell(PdfTable.createCell("以下内容由保险公司填写", keyfont, Element.ALIGN_LEFT, new float[]{2,2,2,2},new float[]{0,7},6,1,BaseColor.WHITE, false));
 
         PdfPTable table3 = PdfTable.createTable(new float[]{70, 70, 70, 70, 80, 100});