How to call "AnnotationAddedByUser" event in JavaScript?

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Bharath
Posts: 3
Joined: Wed Jan 02, 2013 2:12 pm

How to call "AnnotationAddedByUser" event in JavaScript?

Post by Bharath » Wed Jan 02, 2013 2:27 pm

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Wed Jan 02, 2013 4:00 pm

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

Bharath
Posts: 3
Joined: Wed Jan 02, 2013 2:12 pm

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

Post by Bharath » Thu Jan 03, 2013 11:48 am

Olla!!!!!! Loic you did the magic. Thanks monster

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Thu Jan 03, 2013 1:46 pm

You are welcome monster

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest