[reportlab-users] renderPDF

Dirk Datzert reportlab-users@reportlab.com
Tue, 17 Sep 2002 22:51:22 +0200


Hi,

I would suggest a drawToString() function for renderPDF.py like a
similar function in renderPM.py

def drawToString(d, msg="", showBoundary=rl_config.showBoundary,
autoSize=1):
    s = getStringIO()
    drawToFile(d, s, msg=msg, showBoundary=showBoundary,
autoSize=autoSize)
    return s.getvalue()

Regards,
Dirk