How to call "AnnotationAddedByUser" event in JavaScript?
How to call "AnnotationAddedByUser" event in JavaScript?
Hi,
In web application I need to know whether "AnnotationAddedByUser" event can be called in JavaScript?
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.
I want these steps to be done in JavaScript please advice.
Thanks,
Bharath
In web application I need to know whether "AnnotationAddedByUser" event can be called in JavaScript?
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.
I want these steps to be done in JavaScript please advice.
Thanks,
Bharath
Re: How to call "AnnotationAddedByUser" event in JavaScript?
Hello,
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:
With best regards,
Loïc
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>
Loïc
Re: How to call "AnnotationAddedByUser" event in JavaScript?
Olla!!!!!! Loic you did the magic. Thanks
Re: How to call "AnnotationAddedByUser" event in JavaScript?
You are welcome
Who is online
Users browsing this forum: No registered users and 1 guest