Page 1 of 1

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

Posted: Fri Jun 08, 2018 8:09 pm
by Junyoung
I want to insert an image and know the coordinates of that image in PDF.

Is it possible?

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

Posted: Thu Jan 17, 2019 12:58 pm
by Cedric
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