Page 1 of 1

Accessing Menu Items with Javascript

Posted: Sat Jun 24, 2017 7:54 am
by Dror
Hello,

I would like to launch a specific dynamic stamp with Javascript .

In Adobe Acrobat it can be done by getting the name of the stamp with app.listMenuItems() executed in the console window and after with app.execMenuItem

For example: app.execMenuItem("Annots:Stamp:#xcmjhPlMZvWryNqG65Rq9A").

Unfortunately app.listMenuItems() does not return any value in the PDF XChange Editor console window.
Is there a way to get the available menu item names in PDF XChange Editor in order to access them through Javascript ?

many thanks.

Re: Accessing Menu Items with Javascript

Posted: Sat Jun 24, 2017 2:01 pm
by Sasha - Tracker Dev Team
Hello Dror,

Are you sure that you are in a right thread? This is a Core SDK thread, and judging from what you need, you probably need the End-User Editor forum.

Cheers,
Alex