PDF Editing Issues

How to Create Custom Menus and Submenus in Adobe Acrobat Pro DC

Nimra MalikNimra Malik Nov 2, 2026 869 views

Question details

The user wants to know how to create custom submenus within a custom menu in Adobe Acrobat Pro DC using JavaScript.

How to Create Custom Menus and Submenus in Adobe Acrobat Pro DC
Product
Adobe Acrobat Pro DC
Device & OS
not provided
Scenario
Customizing the PDF viewer interface by adding new navigation menus or functional submenus via scripting.
Observed behavior
The user needs the exact JavaScript method and implementation steps to successfully generate a structured submenu within the application interface.
Before you start

Ensure you have basic knowledge of Adobe Acrobat JavaScript and have enabled folder-level scripting permissions in your Acrobat Pro DC preferences.

Solution 1Recommended

Using Acrobat JavaScript to Add a Submenu

Utilize the app.addSubMenu method in a trusted script file to generate a structured submenu within Acrobat Pro DC.

Acrobat JavaScript provides a robust API for customizing the application interface. By using the app.addSubMenu method, developers can nest additional options under an existing or custom parent menu. Because modifying the application UI requires elevated privileges, this code must be placed in a trusted folder-level JavaScript file.

1
Locate the JavaScripts Folder

Navigate to your Acrobat Pro DC JavaScripts directory, typically located at C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\JavaScripts on Windows, or inside the application package contents on macOS.

2
Create a New JavaScript File

Create a new text document in this folder and change its extension to .js (for example, customMenu.js). If prompted for administrator permissions, click Continue.

3
Define the Submenu

Open the .js file in a code editor and add the code: app.addSubMenu({ cName: "MySubMenu", cParent: "MyParentMenu", nPos: 0 }); Ensure the cParent matches the internal name of the menu you are attaching it to.

4
Add Items to the Submenu

Use the app.addMenuItem method to populate the submenu, setting your new submenu's cName as the parent parameter for these items.

5
Restart Adobe Acrobat

Save the customMenu.js file and restart Adobe Acrobat Pro DC to apply the changes and view your newly created custom menus.

Using Acrobat JavaScript to Add a Submenu
API Reference: Always verify the exact parameters (cName, cParent, cExec) in the official Acrobat JavaScript API Reference, as syntax errors will prevent the menu from loading.
Free Microsoft Office alternative

Looking for an All-in-One Office and PDF Suite?

While advanced JavaScript UI customization is specific to Adobe Acrobat, WPS Office provides a powerful, built-in PDF editor alongside its Word, Excel, and PowerPoint alternatives. It's lightweight, free to use, and highly compatible with standard document formats.

  1. 1. Visit the WPS Office Website: Navigate to the official WPS website to locate the free installer for your operating system.
  2. 2. Download the Installer: Click the 'Free Download' button to securely download the latest version of WPS Office.
  3. 3. Install and Enjoy: Run the setup file to install the suite and start editing your PDFs and Office documents immediately.
Seamlessly edit, merge, split, and convert PDF documentsFully compatible with Microsoft Office and standard PDF formatsLightweight installation with an intuitive, unified tabbed interfaceCost-effective alternative to expensive PDF and Office software
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my custom submenu appearing in Acrobat Pro DC?

This usually happens if there is a syntax error in your JavaScript file, or if the script was not placed in the correct trusted folder-level JavaScripts directory. You can press Ctrl+J (or Cmd+J on Mac) to open the Acrobat JavaScript console and check for execution errors.

Can I add a custom menu using document-level JavaScript?

While document-level scripts can execute certain actions upon opening a specific PDF, creating custom application-level menus typically requires folder-level scripts. This ensures the menus load properly when the application launches and operate with the necessary security privileges.

Is it possible to trigger a specific tool from a custom JavaScript submenu?

Yes, you can use the app.execMenuItem method within your custom menu item's execution script (the cExec parameter) to trigger native Acrobat tools or call other custom functions you have defined.