Hello all,
When I try to remove a signature from certain pdf documents I’ get a nullreference exception without any further details. The code is
using AspKit = Aspose.Pdf.Facades;
using (AspKit.PdfFileSignature pdfSig = new AspKit.PdfFileSignature())
{
pdfSig.BindPdf(PdfPath);
int anzahlSignaturen = pdfSig.GetSignNames().Count;
foreach (string signName in pdfSig.GetSignNames())
{
pdfSig.RemoveSignature(signName, true);
}
pdfSig.Save(PdfPath);
}
It works with most documents but with some pdf documents it does not work. May be its because they are PDF/A documents.
I am using Apsose.Pdf Kit Version 8.5
I enclosed the PDF document that results to an error.
Thank you for taking your time looking into this,
Kind regards,
Peter