I have code that is removing Actions from Annotations (in this case, form fields) in a PDF file. Two sets of questions:
1) in one case, I am attempting to set the action to be null:
if (cleanAction(aac.OnClosePage)) aac.OnClosePage = null;
Is this the appropriate way to remove an action? Is there a better way to remove an action?
2) I can also set the JavaScript to be an empty string if that is part of the action tied to the document. Is it better to use a JavaScriptStripper?
Thank you,
Michael