I've searched and searched and have no idea why this is happening. I've tried to call the importDataObject method in several different ways and it always gives me this error message. Why doesn't it work for me?
Code:
var oDoc = event.target;
var sAttachObjName = "myDoc";
oDoc.importDataObject(sAttachObjName);
Error:
Exception in line 3 of function top_level, script Console:Exec
undefined
I'm using Adobe Acrobat Professional for Mac. I'm new to both Adobe Forms and Javascript, and hope this is just some small thing that I'm missing. Please let me know if there is any further information needed.
Thanks!
Use regular Acrobat JavaScript syntax.
Try this.
this.importDataObject("MyName");
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script