Viewer mouse events and drawing inside the viewer

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

akurian
User
Posts: 9
Joined: Thu Jan 09, 2014 12:03 pm

Viewer mouse events and drawing inside the viewer

Post by akurian »

Hi,

We are trying to create a tool which allows our users to draw rectangles and other shapes within the viewer control. How do we capture mouse events and x,y co-ordinates within the viewer area? How can we draw shapes within the viewer area?

Agnel
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Viewer mouse events and drawing inside the viewer

Post by Stefan - PDF-XChange »

Hello Agnel,

Please take a look here:
https://help.pdf-xchange.com/DEV/de ... ilterflags
For the mouse notifications.

And for drawing shapes via code - you can use JS:
https://help.pdf-xchange.com/DEV/de ... xactphrase

Regards,
Stefan