Not yet rated

Problem

There are a wide range of scripts that can be used to access menu items in Acrobat. However some of these are blocked for security reasons. There are a range of menu items that are still accessible; however the syntax is not always clear.

Solution

This PDF (XFA form) provides the script for the Acrobat menu items that are currently permitted. It also has XFA equivalents and Acrobat JavaScript equivalents, where these are available. The form is set up so that you can access the scripts by clicking the buttons. The scripts appear in a dialogue and can be copied directly into LiveCycle Designer.

Detailed explanation

 I had been trying to access Acrobat menu commands without success, when Paul Guerette exposed these for me. The problem remained however as the command I wanted to access was restricted for security reasons. 

Still, armed with the list of commands I prepared a form in which to test each of the commands and create a library of commands that worked. 

I have loosely grouped the scripts by function. Where Paul identified a script which accessed a menu item, this is provided by clicking the button:

There are a wide range of scripts that can be used to access menu items in Acrobat. However some of these are blocked for security reasons. There are a range of menu items that are still accessible; however the syntax is not always clear. 

The user can copy the script direct from the dialogue window. 

Where there is an XFA equivalent, I have provided this as an option:

  There are a wide range of scripts that can be used to access menu items in Acrobat. However some of these are blocked for security reasons. There are a range of menu items that are still accessible; however the syntax is not always clear.

Lastly, where a function can be accessed via a menu item and via Acrobat JavaScript I have included this as well:

  There are a wide range of scripts that can be used to access menu items in Acrobat. However some of these are blocked for security reasons. There are a range of menu items that are still accessible; however the syntax is not always clear.

At this stage I am reasonable happy that the list of scripts accessing menu items is complete (currently not restricted). In relation to XFA equivalents and Acrobat JavaScript equivalents, there may be some that I have missed. 

This mini-project started out with the aim of having a list of Acrobat menu items that could be accessed in LC Designer. Clearly there is a wide range of other Acrobat functionality that is not associated with a menu that can be accessed via JavaScript. These are not cataloged here. 

The sample is provided below. 

Thanks to Paul for his advice during development. 

 

 

 


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes