Other PDF Issues

How to Add Items to the Acrobat Highlight Annotation Context Menu

Nimra MalikNimra Malik Nov 3, 2026 868 views

Question details

The user needs to add custom items to the highlight annotation context menu via an Acrobat plug-in, but the registered context names are failing to display the items.

How to Add Items to the Acrobat Highlight Annotation Context Menu
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Developing an Acrobat SDK plug-in to extend right-click menus for specific PDF annotation objects.
Observed behavior
Adding items to the text-selection context menu succeeds, but identical attempts to register additions for highlight annotations using various context names do not work.
Before you start

Verify that you have the appropriate Adobe Acrobat SDK documentation for your target version, as API routes and context atom names can vary between updates.

Solution 1Recommended

Register Menu Handlers for the Specific Annotation Object

Target the distinct annotation context instead of the standard text-selection context to successfully display the menu items.

Highlight annotations utilize a specific annotation context within the Acrobat SDK. They do not expose the exact same menu-registration route as generic text selections. Guessing atom names often leads to registration failure because the annotation object has an isolated event handler.

1
Consult Supported Acrobat SDK APIs

Review the official Acrobat SDK API reference for your target Acrobat version to identify the exact context names required for annotation objects.

2
Target the Highlight Annotation Route

Modify your C/C++ plug-in code to register the menu handler explicitly for the highlight annotation object type, bypassing the generic text-selection context.

3
Compile and Test

Rebuild your plug-in, launch Acrobat, and right-click on an existing highlight annotation to verify that the newly registered context menu items appear.

Context Name Accuracy: Do not reuse context names from text-selection APIs. Always use the exact annotation API routes specified in the latest SDK headers.
Free Microsoft Office alternative

Need a Simpler Way to Edit and Annotate PDFs?

If you are bogged down by complex SDK development and simply need a lightweight tool for PDF editing, WPS Office provides a powerful built-in PDF editor. It acts as a free, lightweight Microsoft Office alternative with a highly familiar user interface, saving you from complex configurations while ensuring seamless migration.

Seamless format compatibility with Microsoft Office files and standard PDF documentsIntuitive, familiar UI makes highlighting and annotating PDFs effortlessFree, lightweight software suite that runs smoothly on almost any deviceNo complex plug-in development required for advanced PDF markup
microsoft office alternative - wps office

Frequently Asked Questions

Why do menu additions work for text selections but fail on highlights?

Text selections and highlight annotations are treated as fundamentally different objects in the Acrobat SDK. Highlighting is an annotation type that requires routing through a specific annotation context menu API, rather than the general text right-click menu.

Where can I find the correct atom names for Acrobat context menus?

The authoritative source for correct context atom names is the Acrobat SDK API Reference document, specifically within the AVMenuItem and AVApp sections for your targeted Acrobat version.

Can I use JavaScript instead of the Acrobat SDK for context menus?

Acrobat JavaScript provides limited access to modify application-level menus. However, intercepting and heavily customizing the context menu for specific annotation objects typically requires a compiled C/C++ plug-in using the Acrobat SDK.