formFieldClick event is not triggerd on clicking any word in PDF

formFieldClick event is not triggerd on clicking any word in PDF


<PdfViewerComponent

ref={pdfViewerRef}

id="container"

documentPath="newOne.pdf"

resourceUrl="https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2-pdfviewer-lib"

height="640px"

formFieldClick={handleFormFieldClick}

>

<Inject

services={[

Toolbar,

Magnification,

Navigation,

Annotation,

LinkAnnotation,

BookmarkView,

ThumbnailView,

Print,

TextSelection,

TextSearch,

FormFields,

FormDesigner,

PageOrganizer,

]}

/>

</PdfViewerComponent>




2 Replies

YP Yogesh Patil March 24, 2025 12:27 PM UTC

My requirement is after clicking any word in PDF some event has to generate and want to get clicked word. 



SK Sathiyaseelan Kannigaraj Syncfusion Team March 25, 2025 10:33 AM UTC

Hi Yogesh Patil,

Thank you for reaching out to us. Currently, we do not support retrieving a specific word when clicking on it. However, you can achieve your requirement by selecting the text and using the textSelectionEnd event to obtain the selected content. Below, we have provided the API documentation for the textSelectionEnd event. Please review it and confirm whether it meets your needs. If your requirement differs, kindly provide more details so we can offer an appropriate solution.

API documentation on textSelectionEnd
 


Regards,
Sathiyaseelan K


Loader.
Up arrow icon