Page 1 of 1

Link to the index in PDF output

Posted: Fri Jun 05, 2020 10:17 am
by Edwin
Hello,
our customers frequently use the pdf manual as a lookup reference. We have added an index to the end of the document, so users can easilly find and navigate to the topics.

We would like to add a link in the footer of each page that links back to the index. This way users do not have to scroll down to the index each time. As the index is generated it is not possible to create a simple cross reference there is no key to refer to. Is there a way to do this?

Re: Link to the index in PDF output

Posted: Tue Jun 09, 2020 11:43 am
by Radu
Hi,

Sorry for the delay, you want this for the XSL-FO based PDF publishing, right?
In the XSLT:

DITA-OT-DIR/plugins/org.dita.pdf2/xsl/fo/commons.xsl

there is a hardcoded id attribute value:

Code: Select all

    <xsl:variable name="id.index" select="'ID_INDEX_00-0F-EA-40-0D-4D'"/>
which seems to be assigned to the generated index page. So maybe you can try to refer to that ID value. I looked inside the generated XSL-FO file and it seems to be present there.

Regards,
Radu