Javascript call on PDF textbox click

Hi,

I'm trying to make a javascript call when a user clicks on a textbox (or annotation) in the rendered PDF in PDFViewer. Do you have any examples on how to do this? I'm using the Asp.Net MVC version of PDF Viewer.

Thanks.

3 Replies 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team December 30, 2020 11:40 AM UTC

Hi Saurabh, 

Thank you for contacting Syncfusion support. 

An event ‘annotationSelect’ is available in PDF Viewer, which will be triggered when an annotation is clicked. Using that event, you can call the JavaScript as per your requirement,   


Kindly try it and revert us if any queries. 

Regards, 
Akshaya  


Marked as answer

SD Saurabh D January 3, 2021 05:01 AM UTC

Hi Akshaya,

This is perfect, thank you!


AA Akshaya Arivoli Syncfusion Team January 4, 2021 07:08 AM UTC

Hi Saurabh, 

Thank you for your update. We were glad to know that your requirement was achieved with the provided details. Kindly revert us if you need any assistance in future. 

Regards, 
Akshaya  


Loader.
Up arrow icon