Hello,
I've read many topics regarding saving a PDF using privileged functions in the config.js. They have been useful no doubt; however, I've run into a problem.
When deploying my config.js to several users who may have multiple versions of acrobat reader/standard/professional installed it is often hard/impossible to find what directory the config.js file should be stored in. I know you can use app.getPath("user","javascript") and app.getPath("app","javascript") but I'm not sure how to use those functions on computers with only reader installed.
So my question from all of this is how to correctly add a config.js file to the folder level javascript location on machines with multiple installations. Thanks for your help.
-Justin
Installation of multiple versions of Acrobat/Reader is discouraged by Adobe. Each version of Acrobat/Reader has it's own JavaScript folder. As is the installation of Acrobat and Reader on one system.
You can make a PDF with a button to run the code and display the result in an 'alert' message box. You could also search for the 'user' folder for JavaScript. You could use this approach to not only obtain the folder path but also other data about the Acrobat/Reader installation. If there are multiple versions installed, you would need to use the script in each of the installed versions.
George Kaiser