[reportlab-users] Building/Storing PDF's in memory

Adrian Klaver adrian.klaver at gmail.com
Thu Dec 27 10:41:07 EST 2012


On 12/27/2012 07:31 AM, J. R. Carroll wrote:

> Hi list,

>

> Does ReportLab (opensource) offer support for PDF generation in memory?

> I want to build and store the PDF in memory (and then flush it from

> memory once it has been served).

>

> If not, is my best alternative tempfile?


Have you looked at StringIO?:

http://docs.python.org/2/library/stringio.html#module-StringIO

or its replacement in newer versions of Python io.StringIO():

http://docs.python.org/2/library/io.html#module-io


They both allow you to build in memory files.


>

> -J




--
Adrian Klaver
adrian.klaver at gmail.com


More information about the reportlab-users mailing list