[Zope] PDF from external method

Jim Washington jwashin@vt.edu
Thu, 25 Oct 2001 09:23:59 -0400


Juergen R. Plasser / HEXAGON wrote:

> Ok, sorry, this was a python script error.
> 
> Another question: Reportlab examples create files, how can I "RESPONSE" 
> them to Zope?

What I am using:

pdffile.seek(0)
self.REQUEST.RESPONSE.setHeader("Content-type","application/pdf")
self.REQUEST.RESPONSE.write(pdffile.read())

-- Jim Washington