Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
I highly doubt it. For starters, all menus, fields, links, etc. in Acrobat files are rectangular.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...