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.
Adobe Reader opens this PDF with no problem, and says that all signatures are valid.
Thank you for your help.