fix:2022年合同模板调整,删除电子签约的空白页,调整合同水印的显示页码位置
This commit is contained in:
parent
c007b4e30a
commit
89dd7199e2
@ -346,8 +346,8 @@ public class MakeOneCodeAndContractModel {
|
||||
under10.addImage(img);
|
||||
}
|
||||
|
||||
if(pages>10&&"02".equals(leasform)&&("乘用车手签".equals(docName)||"商用车手签".equals(docName)
|
||||
||"乘用车电子签约".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);
|
||||
@ -365,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>6&&"02".equals(leasform)&&("乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){
|
||||
//车辆交接单水印
|
||||
PdfContentByte under5 = stamp.getUnderContent(4);
|
||||
img.scaleAbsolute(180, 32);
|
||||
img.setAbsolutePosition(400, 800);
|
||||
under5.addImage(img);
|
||||
|
||||
PdfContentByte under7 = stamp.getUnderContent(5);
|
||||
img.scaleAbsolute(180, 32);
|
||||
img.setAbsolutePosition(400, 800);
|
||||
under7.addImage(img);
|
||||
//租金支付表水印
|
||||
PdfContentByte under9 = stamp.getUnderContent(7);
|
||||
img.scaleAbsolute(180, 32);
|
||||
img.setAbsolutePosition(400, 800);
|
||||
under9.addImage(img);
|
||||
}
|
||||
stamp.close();// 关闭
|
||||
File tempfile = new File(InPdfFile);
|
||||
//删除原文件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user