Which product are you using?
PDF.Js Express Js
PDF.js Express Version
8.X.X
Detailed description of issue
Need to change highlightToolButton name means (label) or img to my own image path, and tooltip to my own tool tip for ex: existing tooltip for ‘highlightToolButton’ is ‘Highlight’ to ‘someother text’.
Expected behaviour
Need to change highlightToolButton name means (label) or img to my own image path, and tooltip to my own tool tip for ex: existing tooltip for ‘highlightToolButton’ is ‘Highlight’ to ‘someother text’.
Does your issue happen with every document, or just one?
Yes
Link to document
Code snippet
instance.UI.contextMenuPopup.update([
{
type: ‘actionButton’,
label: ‘Annotate’,
onClick: async () => {
const xfdfString = await instance.Core.annotationManager.exportAnnotations();
const xfdfString2 = await instance.Core.annotationManager.exportAnnotCommand();
handleShow(xfdfString, xfdfString2);
}
},
{
type: ‘actionButton’,
label: ‘Comments’,
onClick: () => setShowSnippet(true)
},
{
type: ‘actionButton’,
img: ‘…/…/…/assets/elastic-elasticsearch-logo.png’,
title: ‘Annotate’,
dataElement: ‘highlightToolButton’
}
]);