Copy link to clipboard
Copied
Hello,
I have developed a acrobat plugin. Plugin adds a menu-item under Edit menu.
I am doing some operations on execution of this menu-item.
Now, I want to do these operations in two ways:
1. Do some operations on execution of the menu item. In this case, execution of this menu item will be done by a IAC program (Which works fine in my case)
2. Do some another operations on execution of the same menu item. In this case, execution of this menu item will be done MANUALLY (By user).
So, in the nutshell, execution of the menu item will be done in two ways, manually and programmatically.
So, How can I differentiate this behavior?
Thanks.
Copy link to clipboard
Copied
There are two common ways to handle this:
1) Invisible menu item that the IAC app calls instead of the standard one
2) Use JavaScript bridge to have the external app set some variable that the plugin checks
Copy link to clipboard
Copied
In the second case, what do you mean by JavaScript bridge?
Copy link to clipboard
Copied
How can I make the menu item invisible?
I can't see option to make the menu item invisible.
Copy link to clipboard
Copied
There is a documented way to call Acrobat JavaScript from other applications – see the SDK documentation.
Copy link to clipboard
Copied
How can I make the menu item invisible?
I can't see option to make the menu item invisible in the Acrobat plugin API
Copy link to clipboard
Copied
Any updates on this please?
Copy link to clipboard
Copied
There are not so very many AVMenuItem methods. You create a callback that Acrobat uses to test for visibility.
Copy link to clipboard
Copied
What do you mean by "callback that Acrobat uses to test for visibility"?
Copy link to clipboard
Copied
Just read the AVMenuItem method names, it should be clear which method is used to tegister such a callback. There is no 'set visible' call.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now