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

Free Support Forum - aspose.com

RemoveUsageRights throws exception Unable to cast object of type Aspose.Pdf.Annotations.WidgetAnnotation

Hi,

We have come across this same error message recently and I see that a ticket was entered for it. Has this issue been resolved yet? I have attached the document that is causing this error.
Sertifi_GapApp_DoleseCharlene_14855.pdf (714.4 KB)

This is the specific error we received:
“exceptionMessage”: “Unable to cast object of type ‘Aspose.Pdf.Annotations.WidgetAnnotation’ to type ‘Aspose.Pdf.Forms.Field’.”,
“exceptionType”: “System.InvalidCastException”

Thanks!

@nicknow

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET-51760. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.