How to Add Items to the Acrobat Highlight Annotation Context Menu
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.

- 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.
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.
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.
Review the official Acrobat SDK API reference for your target Acrobat version to identify the exact context names required for annotation objects.
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.
Rebuild your plug-in, launch Acrobat, and right-click on an existing highlight annotation to verify that the newly registered context menu items appear.
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.

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.




