Get URL of object that has been clicked
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Get URL of object that has been clicked
I would like to get the URL of a hyperlink when it's clicked in a PDF possibly using the OnEvent handler, this is in WPF.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Get URL of object that has been clicked
Hello lukebatty,
Sadly there is no easy way of doing this. What you can do, is implement a Custom Event Listener for the Pages View object and listen to the WM_LBUTTONDOWN event. Then check whether it hits the link annotation on the page and see whether it has an URI action in it's actions list. If so, you can obtain the path from it.
Here's a sample that will prove helpful:
https://gist.github.com/Polaringu/f3de7 ... 65695e364c
Cheers,
Alex
Sadly there is no easy way of doing this. What you can do, is implement a Custom Event Listener for the Pages View object and listen to the WM_LBUTTONDOWN event. Then check whether it hits the link annotation on the page and see whether it has an URI action in it's actions list. If so, you can obtain the path from it.
Here's a sample that will prove helpful:
https://gist.github.com/Polaringu/f3de7 ... 65695e364c
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ