Search code examples
xmlpdfdita

Highlighting text after clicking a link in pdf


I am using DITA to create .pdf files.

How do I make a 1-3 second highlight of text that I'm referring to with a link?

e.g. I click a link, which redirects to a phrase (picture, table, etc.), which is then highlighted for a few seconds.


Solution

  • AFAIK, this could work using <fo:multi-properties>, but this is not supported by any of the DITA-OT formatters (FOP, XEP, Antenna), see: 6.9 Dynamic Effects: Link and Multi Formatting Objects

    <fo:block>
      <fo:multi-properties>
        <fo:multi-property-set active-state="hover" color="red"/>
        <fo:wrapper>
          <fo:basic-link external-destination="http://www.google.com">www.google.com</fo:basic-link>
        </fo:wrapper>
      </fo:multi-properties>
    </fo:block>