Page 1 of 1

Add a custom button with custom behavior to a toolbar.

Posted: Wed May 02, 2018 1:05 am
by Shaun Luttin
We would like to add a custom (not built-in) button like this:
Capture.PNG
We have already customized which built-in toolbars/buttons are visible. See viewtopic.php?f=36&t=30822 Now we would like to add a button that is not built-in.

What have we tried?

1. We looked at the JavaScript API, but the Viewer's JavaScript API does not include app.addToolbarButton.
2. We looked at Customize Toolbar > Toolbars > New, and added a new Toolbar, but were not able to add a custom button to this toolbar.
3. We looked at Customize Toolbar > Commands > New..., but the New... button is disabled.

How can we add a custom button to the toolbar?

Re: Add a custom button with custom behavior to a toolbar.

Posted: Wed May 02, 2018 11:20 am
by Stefan - PDF-XChange
Hello Shaun Luttin,

The Viewer UI can not be customized via the SDK, and custom buttons can not be added.
If that UI is inside some other frame inside your project - you can add the extra buttons to your UI, and when clicked those could call and execute commands in the Viewer AX as needed.

Regards,
Stefan