Unable to clear actions from Widget Annotation

When attempting to remove actions from a Annotation Form Field/Widget, the code exits without an error. I’m attaching the sample code and test.pdf.

Hi Stacey,


Thanks for contacting support.

I
have tested the scenario and have observed that NullReferenceException is being generated when trying to clear action against WidgetAnnotation. For the sake
of correction, I have logged this problem as PDFNEWNET-36641 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

The issues you have found earlier (filed as PDFNEWNET-36641) have been fixed in Aspose.Pdf for .NET 9.2.0.

The blog post for this release is created over this link


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Just testing with the sample code and I receive an error of “Object reference not set to an instance of an object.” This is if I attempt to set an action such as OnReceiveFocus to null. Is there another way to clear the action?


Thank you.

wd.Actions.OnReceiveFocus = null;

Please disregard. There was an error with versions in my testing code.

Hi Stacey,


Thanks for your feedback. It is good to know that you have managed to accomplish your requirement with the fix.

Please feel free to contact us for any further assistance, we will be more than happy to extend our support.

Best Regards,