Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JavaScript: how to add PDF Reader custom menu items/toolbar buttons?

Avatar

Level 5

Hello there!

Is it possible to add custom menu items and/or toolbar buttons to PDF Reader?

I've trying with app.addMenuItem but had no success so far.

Thank you for any hints!

Marcos

0 Replies

Avatar

Level 10

Well,

the addMenuItem method it correct, but you cannot use it from inside a PDF.

You have to write a folder level script instead which then is copied into the Javascripts folder of Acrobat or Reader.

After that you have to restart the app to see the new menu item.

Avatar

Level 5

Hey Radzmar,

Thanks, it works!

Now, how do I reference a function inside the PDF? Possible?

BR,

Marcos