Skip to content

Commit 2f601df

Browse files
authored
Merge pull request #17 from LEIRONGHUA/master
修复使用数字证书加盖甲方的印章后,再用加盖后的PDF文件再加盖乙方的印章,也使用数字证书时,会提示“字段已被使用”的错误
2 parents cb17857 + c116a04 commit 2f601df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PDFQFZ/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ private bool PDFWatermark(string inputfilepath, string outputfilepath)
635635
//signatureAppearance.Layer2Text = text;
636636

637637
float bk = 2;//数字签名的图片要加上边框才能跟普通印章的位置完全一致
638-
signatureAppearance.SetVisibleSignature(new iTextSharp.text.Rectangle(xPos- bk, yPos- bk, xPos + imgW + bk, yPos + imgH + bk), signpage, "Signature");
638+
signatureAppearance.SetVisibleSignature(new iTextSharp.text.Rectangle(xPos- bk, yPos- bk, xPos + imgW + bk, yPos + imgH + bk), signpage, null);
639639
}
640640

641641
MakeSignature.SignDetached(signatureAppearance, externalSignature, chain, null, null, null, 0, CryptoStandard.CMS);

0 commit comments

Comments
 (0)