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?

Marcos_J_Pinto
Level 5
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
radzmar
Level 10
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.

Marcos_J_Pinto
Level 5
Level 5

Hey Radzmar,

Thanks, it works!

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

BR,

Marcos