Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

, Trouble importing from text file into PDF Acrobat 9.0

$
0
0

Hey all!

 

I'm trying to use the JavaScript found on this Adobe page to insert text into my PDF:

 

http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.502.html

 

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.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>