Hi,
Here is a simple SVG file containing a rectangle with a hyperlink:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="1000"
height="1000">
<g>
<a xlink:href="http://www.google.com">
<rect width="100" height="100" x="100" y="100"/>
</a>
</g>
</svg>
This SVG file is transformed into a PDF file as follows:
java -jar batik-1.7/batik-rasterizer.jar -m application/pdf sample.svg
When the resulting PDF file is viewed, the hyperlink does not work !
How to keep hyperlinks when transforming an SVG into a PDF ?
Thank you very much for your help.
Xav