Hey all!
I'm trying to use the JavaScript found on this Adobe page to insert text into my PDF:
this.importTextData("/c/data/myData.txt", 0);
Replacing the path with my own path, of course. However, I can't get it to work at all, it just crashes my JavaScript. I was thinking it might have something to do with the privilege stuff which, admittedly, confuses me a bit. But my understanding is that if you use the function without arguments, that shouldn't matter, and it will prompt the user for a path?
this.importTextData();
However, that still crashes the JavaScript. I'm not sure what exactly I am doing wrong here?
NOTE: I have tried running the JavaScript both in a checkbox and on page load.