Configure toolsOverlay popup

Hi Benjamin,

You can disable elements with the disableElements API

For what you want to do that would look something like this:

instance.UI.disableElements([ 'standardStampPanelButton', 'customStampPanel' ]);

Howerver there is no dataElement on the delete stamp button so you may want to add a custom css file and set the icon to display: none PDF.js Express Viewer Style Customization (Color & CSS) | Documentation

so in your css file you would have something like:

.stamp-row .icon{
   display: none
}

and for setting the default tab you can use the setSelectedTab API like so:

  instance.UI.setSelectedTab('rubberStampTab', 'customStampPanelButton');

Cheers,
Dustin

2 Likes