Event / Callback Documentation for JS PDF Viewer?

Hi,

I'd like to be able to define a callback or handle an event in JS whenever a change is made to the PDF in the Viewer.  Is there documentation that describes how to do this?  I didn't see a list of events that are generated by the PDF Viewer.  


4 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team December 12, 2024 08:05 AM UTC

Hi Marvin Warble,

Thank you for reaching out to us. Below, we have provided documentation on various events related to editing PDFs, such as adding, deleting, changing properties, and moving annotations. Additionally, the documentation covers updating comments and form fields. We also offer the isDocumentEdited property, which allows you to check if the document has been edited. All relevant documentation for these features is included below.

Documentation on different events


Documentation on isDocumentEdited property
 


Regards,
Sathiyaseelan K



MW Marvin Warble December 12, 2024 02:41 PM UTC

Thanks.



MW Marvin Warble December 12, 2024 03:07 PM UTC

Thank you, the information you provided is exactly what I need; however, after testing I did notice something that looks like it might be a bug.


The Draw Ink annotation does not trigger the annotationAdd event nor does it cause the isDocumentEdited flag to be set to true.


Can you let me know if this is a bug or a feature?



SK Sathiyaseelan Kannigaraj Syncfusion Team December 13, 2024 11:37 AM UTC

Hi Marvin Warble,

Thank you for the update. We have reviewed the annotationAdd event, but the issue has not occurred. Please note that the annotationAdd event is triggered only after the annotation is fully added. To complete an ink annotation, you need to click on the ink annotation icon once it's finished. Below, we have provided a sample and a demo for your reference. If you continue to experience any issues, kindly provide a demo video showcasing the problem.

Sample adding annotation


Demo on adding annotation
 


Regards,
Sathiyaseelan K


Loader.
Up arrow icon