Test.pdf (170.5 KB)
When calling RemoveUsageRights on the attached PDF we get the following exception. ‘Unable to cast object of type ‘Aspose.Pdf.Annotations.WidgetAnnotation’ to type ‘Aspose.Pdf.Forms.Field’.’
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@"c:\temp\Test.pdf");
Aspose.Pdf.Facades.PdfFileSignature sign = new Aspose.Pdf.Facades.PdfFileSignature();
sign.BindPdf(doc);
sign.RemoveUsageRights();