Re: generating PDF using Reportlab's SimpleDocTemplate

2007-08-27 Thread abrightwell
You are absolutely right. I have tested this approach and for my purposes it is working great. Thanks for the insight. On Aug 23, 9:50 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > You can probably skip the StringIO. HttpResponses support a file-like > interface, so you can write directly to

Re: generating PDF using Reportlab's SimpleDocTemplate

2007-08-23 Thread Ned Batchelder
You can probably skip the StringIO. HttpResponses support a file-like interface, so you can write directly to them. Try passing the HttpResponse directly to the SimpleDocTemplate constructor instead. --Ned. http://nedbatchelder.com/blog abrightwell wrote: > Nevermind, the main problem I seeme

Re: generating PDF using Reportlab's SimpleDocTemplate

2007-08-23 Thread abrightwell
Nevermind, the main problem I seemed to be having was "associating" the pdf with the HttpResponse. Instead of writing the PDF to a file, I found through some more research that all you need to is use a StringIO buffer and then write the value of the buffer to the HttpResponse. I found this infor