Standard stamps tooltip and Sort Order

WebViewer Version: 11.3.0

Please give a brief summary of your issue:

I have included a svg image into Standard stamps as shown below:

const svgxml = ‘ ’;

const base64 = btoa(svgxml);
const svgBase64DataUrl = ‘data:image/svg+xml;base64,’ + base64;
stampTool.setStandardStamps([svgBase64DataUrl]);

Is it possible to display the stamp name in a tooltip when hovering over standard stamps?

Does Webviewer provide a built-in sorting feature for standard stamps?

Kindly let us know if Apryse have such functionality?

Thanks,
Zaid

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


To address your queries about tooltips and sorting of standard stamps in WebViewer:

Some things you can try:

  • WebViewer does not natively support displaying tooltips for standard stamps out of the box. However, you can implement custom tooltips by attaching mouseover events to the stamps in the UI and displaying a tooltip element.

  • For sorting standard stamps, you would need to implement custom logic to sort your stamps array before setting it with setStandardStamps. WebViewer does not provide a built-in sorting feature for stamps.

  • Consider extending the functionality by manipulating the DOM or using custom handlers to achieve the desired behavior.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

2 Likes

Hello Zaid,

Thank you for contacting WebViewer Forums.

  1. Once the stamp annotation is placed, there is a default hover tooltip that can be customized called the content overlay popup. For more information, see this documentation here: Popup API with JavaScript | Apryse documentation

  2. WebViewer does not have a default UI sort feature. However, this can be done programatically using the setStandardStamps() API. See here for more information: Creating custom stamp using JavaScript | Apryse documentation

Regards,
Luke

1 Like