Add annotations withtout using mouse?

Discussions about annotation support.
Post Reply
diwas
Posts: 2
Joined: Fri Sep 11, 2015 8:51 am

Add annotations withtout using mouse?

Post by diwas » Tue Dec 01, 2015 10:12 am

Hi Developers of Gdpicture,
Please help me. I need the help. I also created a ticket but no body is replying.
I want to add annotations to gdviewer without using mouse. Right now I have to drag the mouse to add any annotations.

Example: GdViewer.AddEmbeddedImageAnnotInteractive("TD.png", false, Colors.White, 0.02f, 1);

But I want to be able to put the annotations on the pdf without dragging the mouse. once the annotation is on screen then only I will resize it or move it to another place if I want.
Thanks.

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

Re: Add annotations withtout using mouse?

Post by Loïc » Thu Dec 03, 2015 6:27 pm

Hi,

Your can do that by using the annotation manager attached to the viewer using the GetAnnotationManager() method. So you will be able to add any kind of annotation by code. For example:

Code: Select all

GdViewer1.GetAnnotationManager().AddEllipseAnnot([Your parameters go here]);
With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest