We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfFileSignature

Hi Aspose team,


We got following error message" NullReferenceException: Object reference not set to an instance of an object." when using following method ContainsUsageRights() and file contains only Signatures without Extended Usage Righs.
Code example is following:

using (Facades.PdfFileSignature pdfSign = new Facades.PdfFileSignature())
{
pdfSign.BindPdf(vResultedStream);
if ((pdfSign.ContainsUsageRights()))
{
pdfSign.RemoveUsageRights();
}
pdfSign.Document.Save(vNoSignatureStream);
}

We are using Aspose.Pdf version 11.2

Hi Dmitrij,


Thanks for contacting support.

Please share the resource file, so that we can test the scenario in our environment. We are sorry for this inconvenience.