Skip to main content
Participant
Dec 1, 2020 5:07 AM UTC
Question

How to create a Radial Context Menu? [Acrobat Pro DC]

Hi experts,

 

I was wondering if it is possible to create a radial context menu using the Acrobat API/SDK. I have made a COM based program that talks with MS-Office (MFC/ATL) in C++ but now I need to integrate with Acrobat DC and the AVMenu is not what I am looking for. I have checked the examples and I could not find nothing but these examples AVAppRegisterForContextMenuSnip and ExternalWindows. Could you give some ideas or examples of how I can achive this? 

 

The radial context menu should appear as soon as I hightlight something (like the quick action menu). Here a mockup:

Thank you!

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Dec 1, 2020 11:03 AM UTC

I highly doubt it. For starters, all menus, fields, links, etc. in Acrobat files are rectangular.

Translate
Febo5C45Author
Participant
Dec 2, 2020 2:18 AM UTC

Hi try67,

 

Yes, as you pointed out Acrobat is quite limited when it comes to customize GUI. Therefore, I was thinking of create a radial menu in WinForms, WPF or JS (which could be advantageous because I know that Acrobat has a built-in JavaScript compiler). So I have already written the radial menu in JS tested in Chrome but now I'm facing these problems:

 

1. Is the JS compiler of Acrobat powerfull enough to render my radial menu or what considerations I should have? 

2. The JS code should be part of the add-in (C++), but not as an embeded JS code within the PDFs.

3. If the point 1 is possible, how to call the JS code once I highlight a text? I have the JS code of the radial menu and I have the highlight routine in C++, I need to integrate them.

 

Please, some help and I'm sorry for the silly questions... I'm a newbie.

 

 

Thank you.

Febo.

  

 

 

Translate
try67
Community Expert
Community Expert
Dec 2, 2020 9:20 AM UTC

I don't think you'll be able to use this JS code in Acrobat. It only shares the core JS syntax with web-based JS.

As to executing it via C++, I can't help you with that, either...

Translate