Skip to main content
Participating Frequently
November 15, 2021
Question

plug-ins menu does missing in Acrrat DC

  • November 15, 2021
  • 3 replies
  • 7521 views

I have a couple of Adobe Acrobat's plug-ins working perfectly fine in a few computers with Adobea Acroat DC installed. However, in one of the computers the "plug-ins" menu does not appear in the toolbar.

Under "Help->>Generate System Report" the plug-ins are listed under "Installed Plug-ins".

How do I make sure the "Plug-ins" menu is activated?

Thanks

This topic has been closed for replies.

3 replies

Legend
November 29, 2021

Ok, next... on Windows, Acrobat Pro comes in both "32-bit" and "64-bit" versions. Check and compare this on all systems. Plug-ins are not interchangeable, they will be either 32-bit or 64-bit.

Participating Frequently
November 30, 2021

both are 32-bit versions

Legend
December 7, 2021

Here is the code 

 

 

AVMenubar menubar = AVAppGetMenubar ();
AVMenuItem menuItem;
AVMenu commandMenu = NULL;
// Set up our command menuitem.
commandMenu = AVMenubarAcquireMenuByName (menubar, "Plug-Ins");

if (commandMenu == NULL) {
commandMenu = AVMenuNew ("Plug-Ins", "OOPS:Plug-Ins", gExtensionID);
}

if (commandMenu) {

// Add command menu item to plug-in menu.
menuItem = AVMenuItemNew ("&MarkedPDFReport", "OOPS:MarkedPDFReport", (AVMenu)NULL, false, NO_SHORTCUT, 0, NULL, gExtensionID);
AVMenuItemSetExecuteProc (menuItem,
ASCallbackCreateProto(AVExecuteProc, &MarkedPDFReportCommand), NULL);

AVMenuItemSetComputeEnabledProc (menuItem,
ASCallbackCreateProto(AVComputeEnabledProc, &MarkedPDFReportIsEnabled), NULL);
AVMenuAddMenuItem (commandMenu, menuItem, APPEND_MENUITEM);
AVMenubarAddMenu (menubar, commandMenu, APPEND_MENU);

// Release the menu resource.
AVMenuRelease (commandMenu);
} else {
AVAlertNote ("Unable to open plug-ins");
}


Ah, I think I see the problem. The Plug-ins menu is a shared resource, and yet you are making it in a way that is unique to your plug-in (is OOPS really your company prefix? Cool!)

 

You must access the Plug-ins menu using AVMenubarAcquireMenuByName with the same name you will find in other plug-ins that add to a Plug-ins menu. You never try to create it; Acrobat makes it visible if you add to it. Otherwise the results are going to be unpredictable - and may well depend on plug-in load order, which you cannot control.

Legend
November 19, 2021

Is this problem in an M1 Mac conputer?

Participating Frequently
November 29, 2021

No. This issue is happening in a windows 10 computer.

 

BarlaeDC
Community Expert
Community Expert
November 18, 2021

HI,

 

Can you check the simple stuff first, is this checkbox checked:

Preferences -> General

 

Participating Frequently
November 18, 2021

Hi BarlaaDC,

 

thanks for your response.

the checkbox is not checked.