Handle click on eraseTool

WebViewer Version: 8.1.0

Do you have an issue with a specific file(s)? no
Are you using the WebViewer server? no

Please give a brief summary of your issue:
Handle click on eraseTool

Please describe your issue and provide steps to reproduce it:
How I can handle the click on the eraseTool,
I want to do some logic on click on eraseTool (remove selected annotations),
I couldn’t find how I can achieve that. I hope you can help me on this please.

Please provide a link to a minimal sample where the issue is reproducible:
sdfsdfsdfsdfsdfsdf

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hello,

Thank you for contacting Webviewer.

I think this header customization guide contains what you are looking for.

Best Regards,
Jason Hu
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com

Hello,

Thank you for your quick and helpful response, but, there is a small thing missing.
When I do some logic onClick the eraserTool, the initial functionalities of the eraserTool not working.
The eraserTool button does not work as it was, and the button is not active onClick on it.

How I can add my logic to the initial logic of the button?

Hello,

I would highly suggest that you separate these two functionalities into two buttons, as they are different enough to have their own button.

With that being said, if you would like to keep them in one button, could you send the code snippet you are using?

Best Regards,
Jason Hu
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com