|
@@ -167,7 +167,7 @@ public class ItextPDFUtil {
|
|
// 生成PDF文件
|
|
// 生成PDF文件
|
|
|
|
|
|
public void generatePDF(Document document,InsuranceApplication insuranceApplication, List<Map<String,Object>> mapList,List<InsurancePolicyMember> list,String logoUrl) throws Exception {
|
|
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);
|
|
Image image1 = Image.getInstance(logoUrl);
|
|
Paragraph p1 = new Paragraph("", titlefont);
|
|
Paragraph p1 = new Paragraph("", titlefont);
|
|
//设置文字居中 0靠左 1,居中 2,靠右
|
|
//设置文字居中 0靠左 1,居中 2,靠右
|
|
@@ -355,8 +355,8 @@ public class ItextPDFUtil {
|
|
|
|
|
|
|
|
|
|
PdfPTable table2 = PdfTable.createTable(new float[]{70, 70, 70, 70, 70, 110});
|
|
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));
|
|
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});
|
|
PdfPTable table3 = PdfTable.createTable(new float[]{70, 70, 70, 70, 80, 100});
|