• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Create Top/Parent Menu item in Adobe Pdf

New Here ,
Apr 08, 2020 Apr 08, 2020

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

TOPICS
Acrobat SDK and JavaScript

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 08, 2020 Apr 08, 2020

Votes

Translate

Translate
Community Expert ,
Apr 08, 2020 Apr 08, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2020 Apr 15, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 15, 2020 Apr 15, 2020

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

On a Windows system all plugins are dll files with the extension .api.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2020 Apr 15, 2020

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

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Read the reply of   Test_Screen_Name

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2020 Apr 16, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FPlugins_Cre...

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 16, 2020 Apr 16, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

I cant find Acrobar SDK folder inside C drive

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

You must downlaod and unpack the Acrobat SDK.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2020 Apr 16, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines