Forum How do I...?

Disable all links (<a>) in SVG for PDF publish

Sa4iko
Hello! I create 2 outputs from one document with SVG files - HTML and PDF.
Is it possible to disable all <a> into SVG while I create PDF?
I create images with:
<img class="graphicImg" src="Fig2.svg">

links in SVG like:
<a id="AUTOID_001" vm2d:type="grobject" xlink:href="#view(3)">...</a>


I tried to disable links with JS in Prince.registerPostLayoutFunc(...), but graphicImgNode.contentDocument or getSVGDocument() are not working.
mikeday
Perhaps you could use JavaScript to remove the links before layout? They can't be removed once layout has finished.