How to get the target file name when clicking on a hyperlink

PDF-XChange Editor SDK for Developers

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.
eagle.zhengyi@gmail.com
User
Posts: 31
Joined: Wed Nov 07, 2018 4:41 pm

How to get the target file name when clicking on a hyperlink

Post by eagle.zhengyi@gmail.com »

Hi,
I'm trying to catch the destination information such as the target file name, page number and etc when clicking on a link in a PDF document. How to do it?

I tried the "C:\Program Files (x86)\Tracker Software\Editor SDK\Samples\Delphi\SamplePDFEdit" and found that the event of "e.document.gotoAction" was not fired. Please advise. Do you have a full demo developed in Delphi Programming Language like the C# one?

When I moved the mouse on a link, it popped up a hint which identifies the target file name with full path. How can I get this information programmable when clicking on a link rather than traversing all links?

Enclosed is a screenshot for your reference.

Regards,
Yi
image.png
You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: How to get the target file name when clicking on a hyperlink

Post by Sasha - Tracker Dev Team »

Hello eagle.zhengyi@gmail.com,

The e_document_beforeRunAction event is being fired before the action is being performed:
https://sdkhelp.pdf-xchange.com/vi ... eRunAction

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
eagle.zhengyi@gmail.com
User
Posts: 31
Joined: Wed Nov 07, 2018 4:41 pm

Re: How to get the target file name when clicking on a hyperlink

Post by eagle.zhengyi@gmail.com »

Thanks. I've found a way to get the information.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

How to get the target file name when clicking on a hyperlink

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ