[reportlab-users] External hyperlinks in SVG output

Peter peter at maubp.freeserve.co.uk
Thu Jan 29 10:37:36 EST 2009


As part of a dynamic website, I have to create complex clickable
images. I currently use PNG images generated with ReportLab, and
associated image maps in the parent HTML. Others have done similar
things in the past of course, for example back in 2003 Dirk Datzert
wrote his own reportlab/graphics/renderIM.py back end just for this:

As an alternative, I'd like to try using SVG images which embed the
links directly. For example, instead of having <rect .../> in the SVG
output I want have things like:
<a xlink:href="http://www.example.com" target="_blank"><rect .../></a>

I imagine there are parallels here with PDF output, which can in
theory also include externals URLs. Is any of this currently possible
in ReportLab? I've been looking over the documentation and the source
code, but have concluded that it is not yet supported.



More information about the reportlab-users mailing list