[Zope] [HELP] PDF and IE

fbarsukow at fede.generali.fr fbarsukow at fede.generali.fr
Mon Oct 20 10:54:09 EDT 2003


hi, 

i 've some problems for the edition of PDF Document on IE (5.5 or 6.0 
are my differents configurations). 
IE recognizes the stream only as text format. the problem doesn't 
exist with netsacpe (i use netscape 7.0) 

The pdF is generated and sent as a  stream 

the code is  : 

#stResult recover the pdt stream 
stResultat = context.Editique_GetDocumentPDF(stURL) 


RESPONSE = REQUEST.RESPONSE 
RESPONSE.setHeader('Content-Type', 'application/pdf') 
RESPONSE.setHeader('MIME-Version', '1.0') 
RESPONSE.setHeader('Content-Transfer-Encoding', 'base64') 

#exit on the browser : 
RESPONSE.write(stResultat) 

zope version         : 2.1.2 
python version         : 2.1 


regards, 

fabien Barsukow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20031020/3dd6b35c/attachment.html


More information about the Zope mailing list