i,
I am evaluating Ver 7.0 of dynamic pdf. I tried to sign the document using following code.
The code runs without any issue. When I open the file and browse to bottom, it says that Signature is still unsigned and prompts me to sign it. After I sign it manually, it appears to be really signed. This is undesirable as I need to sign the document and email to customer. Why can’t software signs it fully?
The certificate is perfectly valid.
MergeDocument document = new MergeDocument(@"C:\Users\Ravindra\spartandata\input\client1\pdf\CN_A05500_30052014_0502223 - 2.pdf");
Page page = new Page();
Signature signature = new Signature("Signature", 10, 10, 250, 100);
signature.Reason = "test";
signature.Name = "Ravindra Sadaphule";
signature.Location = "San Jose";
page.Elements.Add(signature);
document.Pages.Add(page);
// document.Security = new Security();
// document.Security.OwnerPassword = "port";
Certificate certificate = new Certificate(@"C:\Users\Ravindra\spartandata\input\client1\pdf\comdocert.pfx", "port");
//document.Certify("Signature", certificate, CertifyingPermission.NoChangesAllowed);
document.Sign("Signature", certificate, true);
document.Draw(@"C:\Temp\signed.pdf");
Thanks
Digital Signing keeps signature unsigned
Re: Digital Signing keeps signature unsigned
Support · Aug 11, 2014Hello,
We did some testing on our end and found that you are using wrong signature name at the time of signing using Sign method. Please try using the name which you are setting using Name property of the Signature class and this will work for you. Below is the code sample for it.
MergeDocument document = new MergeDocument(@"D:\temporary\DocumentA.pdf");
Page page = new Page();
Signature signature = new Signature("Signature", 10, 10, 250, 100);
signature.Reason = "test";
signature.Name = "Ravindra Sadaphule";
signature.Location = "San Jose";
page.Elements.Add(signature);
document.Pages.Add(page);
Certificate certificate = new Certificate(@"D:\images\Data\JohnDoe.pfx", "dynamicpdf");
document.Sign("Ravindra Sadaphule", certificate, true);
document.Draw(@"C:\Temp\signed.pdf");
Thanks,
ceTe Software Support Team.