Skip to main content
wolfeEdition
Known Participant
April 6, 2017
Answered

addMenuItem from 8 Pro to 11 Pro

  • April 6, 2017
  • 3 replies
  • 1357 views

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!

This topic has been closed for replies.
Correct answer try67

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.

3 replies

JR Boulay
Community Expert
Community Expert
April 7, 2017

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/

.

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
Community Expert
April 7, 2017

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

} );

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
April 7, 2017

Looks fine, yes.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 6, 2017

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.

wolfeEdition
Known Participant
April 6, 2017

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

Karl Heinz  Kremer
Community Expert
Community Expert
April 6, 2017

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