Struggling with importTextData () ...
Hello experts,
I'm a novice when it comes to Javascripts, but have managed to learn enough to put together a code to automate a form that I have created using Acrobat Pro. I have successfully executed this, and by this I mean the script runs fine when I click a button on the form - it gets the value from a text file at a specified location and populates the imported row in the correct fields - when I run this using Acrobat Standard or Acrobat Pro (of course I had to include the path names and file names under Preferences .. Security (enhanced)).
Since this form is going to be distributed and many may have just Acrobat Reader, I tried to import data from the text with the form opened on Acrobat Reader. I got a message back saying that the security settings disallowed this method. At this point I included the path names, file names under Preferences ... Security (enhanced) for Acrobat Reader as well. The I made sure I quit Reader, insured that no Acrobat process was running (in the Task Manager), and restarted Reader. Now I was hoping with the documents in the security center marked as trusted I would be able to execute the form - it continues to fail with the same message (Acrobat EScript Built-in Functions Version 11.0; Acrobat SOAP 11.0; NotAllowedError: Security settings prevent access to this property or method.
Doc.importTextData:8:Field DF2QSS:Mouse Up).
Just FYI, I did not need any folder level scripts for this to run when using Acrobat Standard or Pro. What am I doing wrong or not doing? How do I overcome this stumbling roadblock? Your help in getting this is indeed appreciated.
Thanks.
Sid
