[reportlab-users] StringIO instead of tempfile
Martin Weissenboeck
mweissen at gmail.com
Thu Jan 5 06:52:07 EST 2012
Solved.
Somethink like
import StringIO
out = StringIO.StringIO()
c = Canvas(out)
...
c.save()
result = out.getvalue()
out.close()
works fine.
2012/1/5 Martin Weissenboeck <mweissen at gmail.com>
> Hi,
>
> just another question:
> I want to use the Python StringIO class with Canvas(tempfilename). Is
> there any solution?
>
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20120105/d66f7b53/attachment.html>
More information about the reportlab-users
mailing list