Page 1 of 1

How to call "AnnotationAddedByUser" event in JavaScript?

Posted: Wed Jan 02, 2013 2:27 pm
by Bharath
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

Re: How to call "AnnotationAddedByUser" event in JavaScript?

Posted: Wed Jan 02, 2013 4:00 pm
by Loïc
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:

Code: Select all

<script for="GdViewer1" event="AnnotationAddedByUser(AnnotationIdx)">
    --> Your code here
</script>
With best regards,

Loïc

Re: How to call "AnnotationAddedByUser" event in JavaScript?

Posted: Thu Jan 03, 2013 11:48 am
by Bharath
Olla!!!!!! Loic you did the magic. Thanks monster

Re: How to call "AnnotationAddedByUser" event in JavaScript?

Posted: Thu Jan 03, 2013 1:46 pm
by Loïc
You are welcome monster