These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

app.exec(Annots:Tool:InkMenuItem) is not work in Acrobat x

Venkatesh.rewhizz
Registered: Jun 2 2010
Posts: 6

Hi Friends,
previously i created Pdf form Using acrobat 9 and making Extending Features in Adobe Reader.
Now open same Pdf in adobe x version app.exec(Annots:Tool:InkMenuItem) is not firing
please help me
Thanks
Venkatesh

My Product Information:
Acrobat Pro 10.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
1. There's no method called app.exec(). It's app.execMenuItem().
2. This method takes a string as its parameter, ie it must be enclosed in quotes.
3. It's possible the name of this menu item has changed in X. Use app.listMenuItems to get the up-to-date name.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Venkatesh.rewhizz
Registered: Jun 2 2010
Posts: 6
Hi try67
can give sample example to execute app.execMenuItem() in Acrobat x using app.listMenuItems

thanks
Venkatesh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Look in the reference file. It contains sample code for all of these methods.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Venkatesh.rewhizz
Registered: Jun 2 2010
Posts: 6
Hi Try67,

I did not Find in the app.ListMenuItems()
can u Help me

Thanks in advance
try67
Expert
Registered: Oct 30 2008
Posts: 2398
This is taken directly from the reference file of version X (p. 125):

List all menu items to the console using a fancy format.
function FancyMenuList(m, nLevel)
{
var s = "";
for (var i = 0; i < nLevel; i++) s += " ";
console.println(s + "+-" + m.cName);
if ( m.oChildren != null )
for ( var i = 0; i < m.oChildren.length; i++ )
FancyMenuList(m.oChildren[i], nLevel + 1);
}
var m = app.listMenuItems();
for ( var i=0; i < m.length; i++ ) FancyMenuList(m[i], 0);

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Venkatesh.rewhizz
Registered: Jun 2 2010
Posts: 6
Hey Try 7
thanks for your Reply
i did n't find Tool :InkMenuItem in the fancy Menu