The Popup Menu has been around since Acrobat version 4 and has often been overlooked as a means to enable your users to get around your documents quickly or to activate Acrobat menu items or features.
To create a Popup Menu let's start by creating a form field button. Name the button something like 'menu' or 'popup'. Format the button so it has a border and a fill colour, set the Line Style to be 'Beveled'. In the 'Options' tab enter a meaningful label such as 'Menu' or 'Navigation'.
Under the Action tab select 'Run A Javascript' from the 'Select Action' dropdown box, now click the 'Add' button which should display the javascript editor dialog box.
The basic structure of the popup menu is as follows:
Use the 'app' object to call the popup menu function: 'popUpMenu'
Pass parameters to the function indicating:
Menu Item Name, what get's displayed (cName)
Whether or not the Menu item is a checkbox (bMarked: true/false)
Is the menu item enabled or disabled? (bEnabled: true/false)
A Sub Menu, which is created in the same fashion as a normal menu, this parameter is optional and only required if you want sub menus. (oSubMenu:{...})
If you paste the following code into the Javascript Editor, you'll get the following Popup Menu
As you can see the Menu Items in the popup menu have a direct relation to the example code we pasted above.
Something more meaninful could be to have the popup menu go to key pages in your document, for example you may have a Table of Contents page along with an Index or Glossary page. You could construct a Menu that showed the names of each of these sections and returned either the page number or named destination they appeared on.
For example, let's assume we have created named destinations for each of the sections in our document:
Table of Contents: "toc"
Index "index"
Glossary "glossary"
Help "help"
OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.
Generate more, higher-quality sales leads from your PDF marketing content. Docmetrics is a web-based system that lets you capture previously unavailable reader data. Free trial.