Using the attached document, if I attempt to use the RemoveActions method, all actions are removed from all events except the Mouse Up action (this is Adobe Acrobat’s label). Looking at the wd.Actions list in Debug, it does not seem to see any actions that correlate to Mouse Up.
foreach (Page page in doc.Pages)
{
if (page != null)
{
if (page.Annotations != null)
{
for (var index = page.Annotations.Count; index > 0; index–)
{
var ann = page.Annotations[index];
var wd = ann as Aspose.Pdf.InteractiveFeatures.Annotations.WidgetAnnotation;
if (wd != null)
{
wd.Actions.RemoveActions();
}
}
}
}
}