Replies: 3 comments 5 replies
-
|
Technically it's possible to make it work, but DITA-OT doesn't support this. One of the problems with this type of link is that SVG uses a HTML-like URL, which is This is unlikely to be implemented by the current DITA-OT dev team as a built-in feature, but it can be done as a plug-in. |
Beta Was this translation helpful? Give feedback.
-
|
How about if you use DITA XML image maps and define the link underneath the image reference? Oxygen's DITA to PDF using CSS publishing has support for creating the hotspots over the published SVG file, not sure about the classic XSL-FO based PDF. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Michael, if you're using FOP, you can use one of their extensions for anchors/internal destinations: https://xmlgraphics.apache.org/fop/2.11/extensions.html.
<fox:destination internal-destination="table-of-contents"/> I haven't used it, but it sounds like this should put the anchors into the DITA-sourced topics within the PDFs that you can target from the SVG objects. Your plugin would need to inject the fox:destination elements depending on what template matches you want to use. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine a set of DITA content that includes SVGs and that all gets published to a PDF.
We know that DITA-OT natively supports links (via xref elements) within text content. So, for example, in topicA.dita, would yield a clickable link to topicB.dita.
Is it possible to do this linking from an SVG? For example, can I link to topicB.dita from within a text line in the SVG?
Beta Was this translation helpful? Give feedback.
All reactions