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

Menu Short Cut for New Action

New Here ,
Jul 28, 2020 Jul 28, 2020

I have create new action using Action Wizard in Adobe Acrobat DC. Is there any way to call this new action using javascript? My requirement is to create custom menu, which can call this new action.

 

I am following this link for custom menu https://acrobatusers.com/tutorials/add_custom_menu_items/  

TOPICS
Acrobat SDK and JavaScript
622
Translate
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 ,
Jul 31, 2020 Jul 31, 2020

That is exactly what Thom Parker's tutorial just explained. Did you even try the example in that link?

 

The JavaScript need to run on a priviledged context regardless if you use the Action Wizard tool or an  Button with a Mouse-Up action for example.

 

You may need to  also  refer to the "Adobe Acrobat SDK JavaScript Contexts in Acrobat" in the
Developing Acrobat Applications Using JavaScript guide.

 

Look in "Executing privileged methods through the menu" on page  47.

Translate
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 ,
Aug 01, 2020 Aug 01, 2020

No. JavaScript can't call an Action from the Action Wizard.

Translate
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 ,
Aug 01, 2020 Aug 01, 2020
LATEST

What does you use in the action?

Translate
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