Create Top/Parent Menu item in Adobe Pdf

New Here ,
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, Create PDFs, Edit and convert PDFs, Standards and accessibility

Views

654

Likes

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

Create Top/Parent Menu item in Adobe Pdf

New Here ,
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, Create PDFs, Edit and convert PDFs, Standards and accessibility

Views

655

Likes

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
Apr 08, 2020 0
Adobe Community Professional ,
Apr 08, 2020

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Apr 08, 2020 1
New Here ,
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

Likes

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
Reply
Loading...
Apr 15, 2020 0
Most Valuable Participant ,
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...

Likes

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
Reply
Loading...
Apr 15, 2020 0
Adobe Community Professional ,
Apr 15, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Apr 15, 2020 0
New Here ,
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

 

 

Likes

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
Reply
Loading...
Apr 15, 2020 0
Adobe Community Professional ,
Apr 15, 2020

Copy link to clipboard

Copied

Read the reply of   Test_Screen_Name

Likes

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
Reply
Loading...
Apr 15, 2020 0
New Here ,
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

Likes

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
Reply
Loading...
Apr 16, 2020 0
Adobe Community Professional ,
Apr 16, 2020

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Apr 16, 2020 0
New Here ,
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

Likes

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
Reply
Loading...
Apr 16, 2020 0
Most Valuable Participant ,
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

Likes

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
Reply
Loading...
Apr 16, 2020 0
New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

I cant find Acrobar SDK folder inside C drive

Likes

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
Reply
Loading...
Apr 16, 2020 0
Adobe Community Professional ,
Apr 16, 2020

Copy link to clipboard

Copied

You must downlaod and unpack the Acrobat SDK.

Likes

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
Reply
Loading...
Apr 16, 2020 0
New Here ,
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

Likes

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
Reply
Loading...
Apr 16, 2020 0
Most Valuable Participant ,
Apr 16, 2020

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.

Likes

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
Reply
Loading...
Apr 16, 2020 0