[reportlab-users] PDF without file

François Pinard pinard at iro.umontreal.ca
Sat May 27 07:20:59 EDT 2006


[Michael Hipp]
>> [Andy Robinson]

>> Yes, pass a CStringIO or other file like object to the filename 
>> argument either when constructing a canvas or a doctemplate, and it 
>> will put the file in that.

>Thanks, looks like that will work perfectly.

Hi, people.  I did not follow the thread and may be fully out of 
context, so take me with a few grains of salt :-).

Contents of a CStringIO may not be Unicode (unless Python changed 
recently).  Now that Reportlab is Unicode-aware, one may sometimes have 
to resort to the slower StringIO.

-- 
François Pinard   http://pinard.progiciels-bpi.ca


More information about the reportlab-users mailing list