Skip to main content
Participant
March 29, 2022
Answered

Acrobat Actions: Changing the highlight color for highlighting actions.

  • March 29, 2022
  • 1 reply
  • 1095 views

I have downloaded the following actions tools from the Acrobat Actions Exchange:  "Find, Highlight, and Extract Words" and "Find and Highlight Words."  Is there a way to process the file multiple times and change the highlighting color with each process. 

I work in the medico-legal industry, and to elaborate with an example:.  Let's say I'm reviewing a set of medical records, I want to highlight important key medical terms specific to a case.  Then, I would like to come back to find and highlight a doctor's name in a different color so that I can later quickly identify each entry in the record with that doctor's name.  Is there a way to accomplish this?

This topic has been closed for replies.
Correct answer try67

Yes, you can create multiple copies of the Action and adjust this line of code in the first Execute JavaScript command to different values each time to achieve that:

 

var colHilite = color.yellow;

 

For example, you can change it:

var colHilite = color.green;

Or:

var colHilite = color.blue;

Or even to a custom color, like this (orange):

var colHilite = ["RGB", 255/255,215/255,0/255];

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 29, 2022

Yes, you can create multiple copies of the Action and adjust this line of code in the first Execute JavaScript command to different values each time to achieve that:

 

var colHilite = color.yellow;

 

For example, you can change it:

var colHilite = color.green;

Or:

var colHilite = color.blue;

Or even to a custom color, like this (orange):

var colHilite = ["RGB", 255/255,215/255,0/255];