Skip to main content
Participant
May 2, 2021
Question

Highlight text

  • May 2, 2021
  • 1 reply
  • 1480 views

Hi 

I made a document in InDesign. Export it to Acrobat. 
question: is it possible to highlight the text automaticaly that is found when I click on a link on the index page?

thank you

 

 

This topic has been closed for replies.

1 reply

jane-e
Community Expert
Community Expert
May 6, 2021

Hi @C.5E5C 

Do you mean select the text or put a colored highlight on it? This can't happen directly, but someone may be aware of a script or you may be able to hire someone to write one for you.

 

Are you aware, though, that the link on the index page may not refer to any specific text? It could be for the current page, a range of pages, a style change, a specific number of paragraphs, or to the end of the story, for example.

 

I'll tag your post for scripting in case that applies, and apologies for the four-day delay in answering.

 

~ Jane

C.5E5CAuthor
Participant
May 8, 2021

Hi Jane

Please don*t apologies
Thank you so much for your reply.

Here is an example of what I mean

Index
Animals…………….……..35
    Cats in the cradle…....36 —» click on „36


brings me to the text on the page

… if you see cats in the cradle it probably means…… —» cats in the cradle should be highlighted on that page.

thats all

 

In first place I thought no big deal. But this function seems to be used only on mars 🙂

Regards
Christian

try67
Community Expert
Community Expert
May 9, 2021

You can't really do that. Changing the color of static text is not possible in a PDF file.

If you really want to do it like that then you'll need to use a complex solution, involving a script.

Several options are:

- Use layers. One with the text in black and another with the text in red. Show/hide layers based on the user clicking the link to the page.

- Use a (read-only) text field. Set the field's default value to the text you want to show, and the text color to black.

When the link is clicked use a script to change the field's text color to red.