I am controlling Acrobat from VBA via OLE. The problem is that the background task that is created in task manager is not destroyed when the script ends. In the code below, the task is created and is destroyed.
oPDDoc = ole.Create("AcroExch.PDDoc")
jso = oPDDoc.getjsobject()
... define some vars
However, if this line is added after ... define some vars
f = jso.addField("reply." +n, "text", vCurrentPage, aRect)
then the background Acrobat task is not destroyed. Is there something I am not cleaning up correctly.? Is there another way I can get rid of this background task?