This "AnnotationAddedByUser" event will be called in WindowsApplication when you use "AddRectangleAnnotInteractive" method and user draws a rectangle on the GDViewer Image.
Steps are :
1. In a windows form add GDViewer and a button.
2. In that button call this method GDViewer.AddRectangleAnnotInteractive();
3. When you draw a rectangle on the GDViewer Image this event "AnnotationAddedByUser" will be called where you can do whatever you want to.
Please have a look on our HTML/JS sample that demonstrates how to intercept an event. You can search our sample folder with "pdf-image-annotation.html" to get it.
In your case it should be something like:
Code: Select all
<script for="GdViewer1" event="AnnotationAddedByUser(AnnotationIdx)"> --> Your code here </script>
Who is online
Users browsing this forum: No registered users and 1 guest