Page 1 of 1

Figure link doesnt work in PDF output

Posted: Mon Jan 30, 2017 12:09 pm
by SathyaOX
In the transformed PDF, figure reference links do not work. However, table reference links and topic cross-reference links work.

Re: Figure link doesnt work in PDF output

Posted: Mon Jan 30, 2017 12:25 pm
by Radu
Hi,

Maybe you can give us an example of what the link looks like in DITA content, what the linked figure DITA content looks like, in this way we could try to reproduce the issue on our side.

Regards,
Radu

Re: Figure link doesnt work in PDF output

Posted: Tue Jan 31, 2017 7:01 am
by SathyaOX
From the text mode:
<xref href="#c_XXXX_XXXX_03NU2/fig_25" format="dita">Figure 1</xref>

Re: Figure link doesnt work in PDF output

Posted: Tue Jan 31, 2017 9:43 am
by Radu
Hi Santhya,

So the link is to a figure located in the same DITA topic, right?
This seems to be working for me, I tested publishing to PDF a DITA Map referencing a small topic like this:

Code: Select all

<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
"http://docs.oasis-open.org/dita/v1.1/OS/dtd/concept.dtd">
<concept id="c_XXXX_XXXX_03NU2" xml:lang="en-us">
<title>title</title>
<conbody>
<p>
<fig id="fig_25">
<title>My figure</title>
<image href="../image/carwash.jpg"/>
</fig>
</p>
<p>Link <xref href="#c_XXXX_XXXX_03NU2/fig_25" format="dita">Figure 1</xref></p></conbody>
</concept>
and the link works for me.
Do you have any PDF customizations which might interfere with this behavior? Can you post an entire DITA topic XML content for which the link does not work?

Regards,
Radu

Re: Figure link doesnt work in PDF output

Posted: Fri Feb 03, 2017 9:18 am
by SathyaOX
Thanks Radu. The figure links work fine if the PDF is transformed using Generic PDF scenario. Its not working when I use my client-specific scenario for transformation. So I have to ask my client to check the scenario.