Urgent: Support for Clearing signature field (not removing)

Hi Andrew,


Sorry for the inconvenience. You are right, please accept our apology for misunderstanding. It was a typo error, we meant that all other Sign() overloads need to set signature visibility explicitly by using visible flag except following two overloads. Signature field is visible by default in these two overloads.

public void Sign(string SigName, string SigReason,string SigContact, string SigLocation, Signature sig) {}<o:p></o:p>

public void Sign(string SigName, Signature sig) {}

Moreover, we are in coordination with development team regarding your reported issues especially about fixed issue. PDFNEWNET-34539. We will update you soon about its status.

Thanks for your patience and cooperation.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-34561;PDFNEWNET-34538) have been fixed in Aspose.Pdf for .NET 9.3.0.

Blog post for this release can be viewed over this link


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Andrew,


Thanks for your patience. As stated above PDFNEWNET-34561 has been fixed and you can use following code snippet to remove signature only and keeping signature field intact. Hopefully it will help you to accomplish the requirements.

// Test file with
multiple signatures
<o:p></o:p>

string inManySignedFile = @"C:\pdftest\PDFNEWNET_34561_ManySigned.pdf";

string outManyUnsignedFile = @"C:\pdftest\PDFNEWNET_34561_ManyUnSigned.pdf";

string inOutManyResignedFile = @"C:\pdftest\PDFNEWNET_34561_ManyReSigned.pdf";

PdfFileSignature pdfSignMany = new Aspose.Pdf.Facades.PdfFileSignature(inManySignedFile);

IList sigNames = pdfSignMany.GetSignNames();

foreach (string sigName in sigNames)

{

pdfSignMany.RemoveSignature(sigName, false);

}

pdfSignMany.Save(outManyUnsignedFile);

PdfFileSignature pdfSignMany2 = new PdfFileSignature();

pdfSignMany2.BindPdf(outManyUnsignedFile);

pdfSignMany2.Sign("Signature1", pcks);

pdfSignMany2.Save(inOutManyResignedFile);

pdfSignMany2.BindPdf(inOutManyResignedFile);

//Assert.IsTrue(pdfSignMany2.VerifySignature("Signature1"));

Console.Write("Signature 2 check result : " + pdfSignMany2.VerifySignature("Signature1").ToString() + " ");

Please feel free to contact us for any further assistance.


Best Regards,