Page 1 of 1

Adding a hyperlink in a logo in footer

Posted: Tue Jan 17, 2017 7:41 pm
by Julie P
Hi,

In my PDF output, I have our company logo in the footer. I would like this logo to be a hyperlink to the index. Is that possible? I haven't found topics on this issue.
I managed to insert a link to an external web site, but I cannot figure out how to point to the index.
This is what I wrote so far in the insertBodyOddFooter xsl template:

Code: Select all

<fo:inline>

<fo:basic-link color="blue" external-destination="url('http://www.google.com')" text-altitude="0.50cm">
<fo:external-graphic src="url(Customization/OpenTopic/common/artwork/Mylogo.png)" content-height="scale-down to-fit" height="0.50cm"/>
</fo:basic-link>

</fo:inline>
Regards,

Julie

Re: Adding a hyperlink in a logo in footer

Posted: Wed Jan 18, 2017 6:38 pm
by radu_pisoi
Hi,

Do you want to create a link to the Index section?

If this is your case, I think you should use the fo:basic-link/@internal-destination attribute to create a link inside the PDF document.

More precisely, to create a link to the Index section, you can try something like this:

Code: Select all

<fo:basic-link internal-destination="{$id.index}">
The variable id.index points to ID generated for the Index section, see:

Code: Select all

{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/xsl/fo/toc.xsl
However, for questions like this a good discussion channel is the DITA users list, http://dita.xml.org/dita-users. This list is monitored by many DITA specialists, so the chances to get a fast and good answer are higher. We are also registered and active to this list.

Re: Adding a hyperlink in a logo in footer

Posted: Thu Jan 19, 2017 10:51 am
by Julie P
Hi,

Thank you very much for your help.

Regards,

Julie