Skip to main content
Known Participant
September 23, 2022
Question

Select or highlight Destination Text

  • September 23, 2022
  • 1 reply
  • 1542 views

In InDesign content file generating Hyperlink on Text (format is Times, 😎

 

and Hyperlink Text Destination on same Text with diff format (Times, 9)

 

Now, in PDF file when user clicks on the Link, is there any way to select Destination Text OR Highlight the Destination Text OR put the cursor blinking, as there are lot of content in the file so it is difficult to identify the Text on which it is jumped...?   

 

OR 

 

Is it possible by scripting in Adobe PDF, to get the Hyperlink Text on which I've clicked?

 

So by finding the same Text and Highlight it in next occurance.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
September 23, 2022

There's no such thing as "destination text" to a link in a PDF file. It can cause the display to jump to a certain location in the file, but it's not connected to any text in that location.

Having said that, it is possible to use a script to highlight some text when a link is pressed. For example, you can create a Highlight comment in advance over that text, hide it, and then make it visible when the link is clicked. To do that you would need to pass some reference to that comment, though, so it could identify it. This can be the comment's internal name, for example.

Hetal5C4CAuthor
Known Participant
September 23, 2022

Thank s for the support, I'm new to the PDF scripting.

 

How do I get the Text when link is pressed, how do I pass and give reference to the comment?

 

Can you please provide some code or link with some example..?

 

try67
Community Expert
Community Expert
September 23, 2022

Again, there's no easy way to do that. The best way is to hard-code it into the link's script, but why do you need to know that in the first place? How is the underlying text of the link related to highlighting the text it "points to" on the target page?