Is there a way to put image on mouse click position?

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
Junyoung
Posts: 3
Joined: Fri Jun 08, 2018 8:02 pm

Is there a way to put image on mouse click position?

Post by Junyoung » Fri Jun 08, 2018 8:09 pm

I want to insert an image and know the coordinates of that image in PDF.

Is it possible?

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: Is there a way to put image on mouse click position?

Post by Cedric » Thu Jan 17, 2019 12:58 pm

Hi,

There could be different ways to achieve this but I don't think you can do that with a simple mouse click as there's no out-of-the box event handler for this.
You could do that quite easily using the annotations and the selection area though, the idea would be to draw the selection area where the image should appear and implement a custom action that will be called upon the area selected event. Then server side you can add your image at the desired position and get its coordinates.
I would recommend you to read the dedicated tutorials:
- Custom Action: https://www.docuvieware.com/guides/aspn ... tions.html
- Selection area: https://www.docuvieware.com/guides/aspn ... 0Area.html

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest