fix:合同模板调整

This commit is contained in:
maliang 2021-10-26 09:48:07 +08:00
parent 944e1cabdb
commit 427e847ee9

View File

@ -346,7 +346,8 @@ public class MakeOneCodeAndContractModel {
under10.addImage(img);
}
if(pages>10&&"02".equals(leasform)&&("乘用车手签".equals(docName)||"商用车手签".equals(docName))){
if(pages>10&&"02".equals(leasform)&&("乘用车手签".equals(docName)||"商用车手签".equals(docName)
||"乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){
//车辆交接单水印
PdfContentByte under5 = stamp.getUnderContent(5);
img.scaleAbsolute(180, 32);
@ -364,23 +365,23 @@ public class MakeOneCodeAndContractModel {
under9.addImage(img);
}
if(pages>7&&"02".equals(leasform)&&("乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){
//车辆交接单水印
PdfContentByte under5 = stamp.getUnderContent(5);
img.scaleAbsolute(180, 32);
img.setAbsolutePosition(400, 800);
under5.addImage(img);
PdfContentByte under7 = stamp.getUnderContent(6);
img.scaleAbsolute(180, 32);
img.setAbsolutePosition(400, 800);
under7.addImage(img);
//租金支付表水印
PdfContentByte under9 = stamp.getUnderContent(8);
img.scaleAbsolute(180, 32);
img.setAbsolutePosition(400, 800);
under9.addImage(img);
}
// if(pages>7&&"02".equals(leasform)&&("乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){
// //车辆交接单水印
// PdfContentByte under5 = stamp.getUnderContent(5);
// img.scaleAbsolute(180, 32);
// img.setAbsolutePosition(400, 800);
// under5.addImage(img);
//
// PdfContentByte under7 = stamp.getUnderContent(6);
// img.scaleAbsolute(180, 32);
// img.setAbsolutePosition(400, 800);
// under7.addImage(img);
// //租金支付表水印
// PdfContentByte under9 = stamp.getUnderContent(8);
// img.scaleAbsolute(180, 32);
// img.setAbsolutePosition(400, 800);
// under9.addImage(img);
// }
stamp.close();// 关闭
File tempfile = new File(InPdfFile);
//删除原文件