Skip to content

Instantly share code, notes, and snippets.

@cyancey76
Created February 4, 2020 19:05
Show Gist options
  • Select an option

  • Save cyancey76/2f8f667081bdead2fbc66e8ea3ff4cdb to your computer and use it in GitHub Desktop.

Select an option

Save cyancey76/2f8f667081bdead2fbc66e8ea3ff4cdb to your computer and use it in GitHub Desktop.
Change Acrobat PDF highlight color
// document open script
var appHighlightInitialValue = app.runtimeHighlight;
var appHighlightInitialColorValue = app.runtimeHighlightColor;
app.runtimeHighlight = true;
app.runtimeHighlightColor = color.transparent;
// document close script
app.runtimeHighlight = appHighlightInitialValue;
app.runtimeHighlightColor = appHighlightInitialColorValue;
/* Colors available
Transparent = color.transparent
Black = color.black
White = color.white
Red = color.red
Green = color.green
Blue = color.blue
Cyan = color.cyan
Magenta = color.magenta
Yellow = color.yellow
Dark Gray = color.dkGray
Gray = color.gray
Light Gray = color.ltGray
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment