Accessing Menu Items with Javascript

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
Dror
User
Posts: 1
Joined: Sat Jun 24, 2017 7:19 am

Accessing Menu Items with Javascript

Post 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.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Accessing Menu Items with Javascript

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply