[reportlab-users] renderSVG and drawToString()-function

Dirk Datzert reportlab-users@reportlab.com
Fri, 04 Oct 2002 19:54:33 +0200


Hi,

last month I sent a message to the list. Probably I didn't pointed out
that I placed the drawToString()-function on my local version of
renderSVG.

I want to make a suggestion that this function will made its way into to
official CVS.

Regards,
Dirk

--

Hi,

I had the need to render SVG in memory. I placed a
drawToString()-Function in renderSVG:

def drawToString(d, showBoundary=rl_config.showBoundary):
    "Returns a SVG as a string in memory, without touching the disk"
    s = getStringIO()
    drawToFile(d, s, showBoundary=showBoundary)
    return s.getvalue()

Regards,
Dirk