[Zope] PDF from external method
Thu, 25 Oct 2001 08:47:26 -0500
On Thu, Oct 25, 2001 at 01:55:47PM +0200, 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?
One way that I do this is after the pdf file is created, I set up a function that opens and reads that file into a string and then return the string back to zope. You can then set up the MIME header of the zope object calling the reportlab script to be PDF which should open up the appropriate pdf viewer in your browser.
<Function to read pdf. This is an external method or a python script.>
<DTML_SCRIPT to call readPDF function>