[Tex/LaTex] Set the highlight style of a link to “none” instead of “invert”

hyperreflinkspdf

I've read all documentation possible regarding hyperref but I still don't know how to set the highlight style of a link to "none" instead of "invert" (which is the default by the way).
Is there any other package that could deal with this, or is there any workaround to solve this?

Below is the Adobe Acrobat menu for hyperlinking something. As you can see the default for Highlight style is "invert". With hyperref is easy to change all other properties but how about highlight style?

Sometimes is awkward to click on an image that is linked since acrobat (for instance) displays it with the colours inverted when clicking (when the mouse button is down)…

Can someone help me out?
Thanks a lot!

Example file here.
If you download the pdf file (because browsers display pdfs in a simpler manner) and open it in adobe reader and if you click (and leave the mouse button down) on a link you'l see that the colors will become inverted. If set the highlight style to none this will not happen. How to do it is the million dollar question? 🙂

Adobe Acrobat menu for links

Best Answer

Default for option pdfhighlight is /I for "Invert". It can be changed to "None":

\hypersetup{pdfhighlight=/N}

Other values:

  • /O: "Outline"
  • /P: "Push"

See PDF specification. hyperref is only passing the values through to the link dictionary.

From PDF32000_2008.pdf:

Table 173 – Additional entries specific to a link annotation

  • Key: H
  • Type: name
  • Description: (Optional; PDF 1.2) The annotation’s highlighting mode, the visual effect that shall be used when the mouse button is pressed or held down inside its active area:

    N (None) No highlighting.
    I (Invert) Invert the contents of the annotation rectangle.
    O (Outline) Invert the annotation’s border.
    P (Push) Display the annotation as if it were being pushed below the surface of the page.
    Default value: I.