Aspose.Pdf Invalid signature object

Hi,

I would appreciate any insight into the problem we are having with removing digital signatures from the (attached) signed PDF. We’re using Aspose.Pdf 7.4.0. Our code is as follows:

public void RemoveSignaturesFromPdf(MemoryStream pdf)
{
PdfFileSignature pdfSign = new PdfFileSignature();
pdfSign.BindPdf(pdf);
var names = pdfSign.GetSignNames();

… et cetera.
}

When calling pdfSign.GetSignNames(), the following exception occurs:

System.ApplicationException: Invalid signature object.
at .?.?( )
at Aspose.Pdf.InteractiveFeatures.Forms.Signature…ctor( , )
at Aspose.Pdf.InteractiveFeatures.Forms.SignatureField…ctor( , Document )
at Aspose.Pdf.InteractiveFeatures.Forms.Field.?( , Document )
at Aspose.Pdf.InteractiveFeatures.Forms.Form..get_Current()
at Aspose.Pdf.Facades.PdfFileSignature.GetSignNames()

Adobe Reader opens this PDF with no problem, and says that all signatures are valid.

Thank you for your help.

Hi Eva,


Thanks for using our products.

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it as PDFNEWNET-34652 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for your inconvenience.

The issues you have found earlier (filed as PDFNEWNET-34652) 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.