Skip to main content
Participating Frequently
May 29, 2020
Answered

Javascript to automate addition of an add-on tool to the toolbar

  • May 29, 2020
  • 2 replies
  • 1190 views

Hello everyone,

 

I am a complete beginner in developing Acrobat functionalities. I had this task of adding a button to a toolbar which , on pressing would show a pop-up and I was asked to do this using Javascript. I successfully added the button to the add-on toolbar and found out that this add-on tool could be manually added to the toolbar with the help of customizing of toolbar. But now I am asked if this manual addition of the button to the toolbar could be automated using some script. I went through the Javascript API reference documentation and found that it has the execMenuItem method, but it can execute only specific commands (example: Save As). Could anyone let me know if this automation could be done using Javascript?

( The manual addition I am speaking about is Going to View -> Show/Hide -> Toolbar Items ->Customize Quick tools )

 

 

I know that the button can be directly added on to the toolbar using plugins, but that would require development in C++ and we are trying to explore the functionalities that could be achieved using JS scripts

 

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Bernd Alheit

This is not possible with Javascript.

2 replies

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
May 29, 2020

This is not possible with Javascript.

ls_rbls
Community Expert
Community Expert
May 29, 2020

As you mentioned, you don't need to learn how to develop a plug-in to achieve this.

 

AdobeAcrobat already comes packed with, customizable tools, useful plug-in actions and sequences.

 

Use this guidance on how to add a tool:

 

https://helpx.adobe.com/acrobat/using/workspace-basics.html#custom_tool 

 

You can also achieve similar result using the Action Wizard Tool in addition to learning  some  basic javascript.

 

https://helpx.adobe.com/acrobat/using/action-wizard-acrobat-pro.html 

 

You will always have a javascript action available and easily accessible.

 

 

 

But if you have an third-party add-on that you wish to incorporate to the Adobe Acrobat's toolbar you must consult how the vendor recommends to install it and set it up.

 

 

Technical Generalist