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