Copy link to clipboard
Copied
I have the following trusted save function that I use all the time for Adobe Acrobat 8 Pro on my Windows 7 64 bit PC....
app.addMenuItem( {
cName: "trustedSave",
cUser: "Save SIS File", cParent: "Tools",
cExec: "saveSisFile();", nPos: 0
} );
app.addMenuItem( {
cName: "trustedSave",
cUser: "Save PUB File", cParent: "Tools",
cExec: "savePubFile();", nPos: 0
} );
I am trying to use this same code in Adobe Acrobat XI Pro that my company just upgraded me to.
Can someone direct me to the folder location my trusted save and functions should be put in?
Also is my app.addMenuItem written correctly?
Any help would be appreciated!
Acrobat XI doesn't have a Tools menu, so it can't work. Either use
something else, like Edit or File, or switch to the addToolButton method,
if you want it to appear under the Tools panel on the right.
Copy link to clipboard
Copied
Acrobat XI doesn't have a Tools menu, so it can't work. Either use
something else, like Edit or File, or switch to the addToolButton method,
if you want it to appear under the Tools panel on the right.
Copy link to clipboard
Copied
That makes sense....
Can you tell me where the javascript files should be moved to since the layout is different?
I had them stored here for 8.....
C:\Users\YOUR_USER_NAME\AppData\Roaming\Adobe\Acrobat\8.0\JavaScripts
Copy link to clipboard
Copied
On Windows, the JavaScripts directory should be this (please note that there is a "Privileged" folder in the path, which is different from what you had with Acrobat 8):
C:\Users\YOUR_USER_NAME\AppData\Roaming\Adobe\Acrobat\Privileged\11.0\JavaScripts
Copy link to clipboard
Copied
If any directory level does not exist, then you need to create that directory and the following directories.
The users app directory is hidden by default. You can either unhide the directory or use the system variable %appdata% to quickly navigate to the folder using Windows File Explorer.
Copy link to clipboard
Copied
You can also use:
C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts\
Copy link to clipboard
Copied
Hi.
is my app.addMenuItem written correctly?
You can use this script that uses Acrobat's menus regarding its version:
if (app.formsVersion >= 10) {var myMenu = "Edit";}
else {var myMenu = "Tools";}
app.addMenuItem( {
cName: "trustedSave",
cUser: "Save PUB File", cParent: myMenu,
cExec: "savePubFile();", nPos: 0
} );
Copy link to clipboard
Copied
Looks fine, yes.
Copy link to clipboard
Copied
Can someone direct me to the folder location my trusted save and functions should be put in?
You should use this free tool: https://www.abracadabrapdf.net/utilities-in-english/pdf-utilities/show_me_the_path-en/
.