Re: PDF response using wkhtmltopdf.

2011-02-17 Thread Bill Freeman
The return value of Popen isn't the output of the program, but instead is the class instance. I believe that you could provide a cStringIO instance as the 'stdout' keyword argument, and it would capture the program's output. You could them use its getvalue() method's return value as your HttpResp

PDF response using wkhtmltopdf.

2011-02-16 Thread juanefren
I am using wkhtmltopdf to create PDF files, how ever I don't know how to return them properly, docs says using a single dash instead of output file name will write that to stdout. But I don't realize how to return that content. I have been trying using subprocess.Popen this way: r = HttpResponse(