6 Replies Latest reply on Jan 6, 2016 3:49 AM by kirill33

    app.execMenuItem ("ShowCoverPage") - not working

    kirill33

      Hello!

       

      app.execMenuItem ("ShowCoverPage")

      in:

      JS Debugger - working OK

      Action Wizard - Create New Action - working OK

      .js file - NOT working

       

      so when i create a .js file in C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts\

      function helloWorld(){app.execMenuItem ("FitVisible");} app.addToolButton({cName: "helloWorldBtn", cExec: "helloWorld()", cLabel: "Hello World", cTooltext: "Say Hello World"});

      Button is working good!

       

      but button with "ShowCoverPage"

      function helloWorld(){app.execMenuItem ("ShowCoverPage");} app.addToolButton({cName: "helloWorldBtn", cExec: "helloWorld()", cLabel: "Hello World", cTooltext: "Say Hello World"});

      is NOT working ! I press on the button and nothing is happens! Why? How to fix it?

      Thank you.

       

      Acrobat XI 11.0.09

      Win 7 x64