Hi, I have a piece of Javascript (pretty much copied from Acrobat manual) that's attached to the Click event of a Button, and it removes all the annotations on a PDF form.
The script is like this:
var oObj = event.target;
var annots = oObj.getAnnots({ nPage:0 });
for (var i = 0; i < annots.length; i++) {
annots[i].destroy();
}
It works fine when the form is a stand-alone PDF. But when I put the form in the WorkSpace and get it routed in a workflow, it doesn't remove the annotations at all.
(The form is referenced by a Document variable in the Process, and it's the input/outpt of the User Tasks.)
What do I need to do to get it to work in WorkSpace?
thanks