Copy link to clipboard
Copied
Hi Team,
I have came across Js method like addSubMenu, addMenuItem, but these all are meant for sublevel menu. I want to create a Top level or custom Parent Menu similar to File,Edit,View,Windows,Help. Please suggest how to accomplish this.
Thanks in Advance,
Amit
This is possible with a plugin (written in C/C++).
Copy link to clipboard
Copied
This is possible with a plugin (written in C/C++).
Copy link to clipboard
Copied
Hello,
Thanks for the quick response.
So as suggested by you i have created an .api file with content as below:
//Declare menu variables
AVMenubar Themenubar = NULL; AVMenu NewMenu = NULL;
AVMenuItem NewMenuCommand = NULL;
//Retrieve the menu bar in Adobe Reader or Acrobat
Themenubar = AVAppGetMenubar();
//Create a new menu
NewMenu = AVMenuNew("New Menu", "ADBE:NewMenu", gExtensionID); if (NewMenu == NULL)
{
AVAlertNote ("Unable to create the menu"); AVMenuRelease (NewMenu);
return ;
}
I have copied and pasted the file at C:\Program Files (x86)\Adobe\Acrobat 2015\Acrobat\plug_ins
While opening a pdf file the new Menu is not getting reflected. Kindly rectify me where i am wrong.
Thanks in Advance,
Amit
Copy link to clipboard
Copied
It sounds as if you have created a text file, called it API and expert this to work? If so, NO. Miles away. As a C++ programmer with the right development tools and patience you can add this code to a template plug-in. If you are not an experienced C++ programmer you have a long journey. Start here. https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FPlugins_Int...
Copy link to clipboard
Copied
On a Windows system all plugins are dll files with the extension .api.
Copy link to clipboard
Copied
Thanks! @Bernd_Alheit. Can you please suggest me how to proceed next.
i have created an .api file with content as below:
//Declare menu variables
AVMenubar Themenubar = NULL; AVMenu NewMenu = NULL;
AVMenuItem NewMenuCommand = NULL;
//Retrieve the menu bar in Adobe Reader or Acrobat
Themenubar = AVAppGetMenubar();
//Create a new menu
NewMenu = AVMenuNew("New Menu", "ADBE:NewMenu", gExtensionID); if (NewMenu == NULL)
{
AVAlertNote ("Unable to create the menu"); AVMenuRelease (NewMenu);
return ;
}
I have copied and pasted the file at C:\Program Files (x86)\Adobe\Acrobat 2015\Acrobat\plug_ins
While opening a pdf file the new Menu is not getting reflected. Kindly rectify me where i am wrong.
Thanks in Advance,
Amit
Copy link to clipboard
Copied
Read the reply of Test_Screen_Name
Copy link to clipboard
Copied
Hi,
I am using windows 10 platform and Adobe acrobat DC. I am unable to find the project file named Starter.sln in the following directories:
C:\Acrobat SDK\PluginSupport\Samples\Starter\win32
C:\Acrobat SDK\PluginSupport\Samples\Starter\win64
Thanks in Advance,
Amit
Copy link to clipboard
Copied
Did you download the Acrobat SDK?
Copy link to clipboard
Copied
I want to create a new menu.
I have
//Declare menu variables
AVMenubar Themenubar = NULL; AVMenu NewMenu = NULL;
AVMenuItem NewMenuCommand = NULL;
//Retrieve the menu bar in Adobe Reader or Acrobat
Themenubar = AVAppGetMenubar();
//Create a new menu
NewMenu = AVMenuNew("New Menu", "ADBE:NewMenu", gExtensionID); if (NewMenu == NULL)
{
AVAlertNote ("Unable to create the menu"); AVMenuRelease (NewMenu);
return ;
}
I have code for the same for creation of new Menu but where to use it to reflect the changes in pdf file
Copy link to clipboard
Copied
We understand what you want to do. You are at the start of a long but interesting challenge. Please answer the question -- what do you see in
C:\Acrobat SDK\PluginSupport\Samples\Starter\win32
C:\Acrobat SDK\PluginSupport\Samples\Starter\win64
Copy link to clipboard
Copied
I cant find Acrobar SDK folder inside C drive
Copy link to clipboard
Copied
You must downlaod and unpack the Acrobat SDK.
Copy link to clipboard
Copied
I have downloaded Acrobat DC SDK latest release. Got sdkDC_v1_win
unzipped and got adobe folder. Now what to install.It has got multiple folders
Copy link to clipboard
Copied
Yes. it is a big complicated thing. All developers need it. Unfortunately, There are no good instructions, you must just explore and play with it until you work it out.