Want to add custom button in Stamp panel button to upload image

WebViewer Version: 11.4.0

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? Yes
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? No

Please give a brief summary of your issue: I want to add custom button in stamp panel for uploading image.

Please describe your issue and provide steps to reproduce it: I want to add custom button in stamp panel for uploading image.

We have image upload function for stamp.
image

I have to move this button inside the stamp panel.
Is there any way we can show images in custom stamp list

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 add a custom button in the Stamp panel for uploading an image in WebViewer, you will need to interact with the WebViewer’s UI and possibly make use of its JavaScript API to customize the UI components.

Some things you can try:

  • Use the UI.loadDocument() function to load documents and manage UI elements.

  • Customize the UI by accessing the instance.UI object, which allows you to add or remove buttons.

  • Create a custom button element and append it to the Stamp panel using the DOM manipulation techniques.

  • Attach an event listener to your custom button to handle the image upload functionality.



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.

1 Like

Hi there,

The left panel you are referring to is a pre-built rubber stamp panel:

You cannot customize a prebuilt panel via our APIs.

To achieve your use-case, I recommend creating a new custom panel and adding the components to your panel such as the insert image button:

Best regards,
Kevin

1 Like