[Zope] Zope : pdf content type

Sin Hang Kin iekentsin@infoez.com.mo
Sat, 25 Mar 2000 18:11:59 +0800


I created a method

topdf

<dtml-let filetorender=this>
<dtml-var renderpdf>
</dtml-let>
<dtml-call "RESPONSE.setHeader('Content-Type', 'application/pdf')">

Which the renderpdf is a pdf object which just have only <dtml-var
filetorender missing>

If I directl call the pdf object, the browser call up the acrobat reader.
However, If I call the topdf method, only the pdf source code is shown in
the browser.

What is missing? How can I make it work?

Rgs,

Kent Sin