[Zope-CMF] CVSFile / ExternalFile problems with PDFs

Kevin Carlson khcarlso@bellsouth.net
Wed, 27 Mar 2002 21:05:54 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C1D5D3.2F05F5A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Answered my own question...in case anyone else is interested here is the
solution.

To render the contents of a binary file such as a PDF or a MSWord document,
set the "behave_like" property to Image.  Apparently, the "Image" setting
should really be "Binary File" since it seems to work with numerous MIME
types other than images.

Kevin

>  -----Original Message-----
> From: 	zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org] 
> Sent:	Wednesday, March 27, 2002 8:41 PM
> To:	zope-cmf@zope.org
> Subject:	[Zope-CMF] CVSFile / ExternalFile problems with PDFs
> 
> I am attempting to add a PDF file to a folder as an instance of CVSFile
> which, in and of itself, works fine.  However, when I attempt to retrieve
> the document, the data is transferred, Acrobat is opened, and the raw data
> of the PDF is displayed instead of the actual Acrobat document.  Has
> anyone run into this type of thing before?
> 
> Thanks.
> 
> 

------=_NextPart_000_0008_01C1D5D3.2F05F5A0
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IjYCAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANIHAwAbABUABQAAAAMAFAEB
A5AGANgHAAAkAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADAC4AAAAAAAMANgAA
AAAAHgBwAAEAAAAqAAAAQ1ZTRmlsZSAvIEV4dGVybmFsRmlsZSBwcm9ibGVtcyB3aXRoIFBERnMA
AAACAXEAAQAAABsAAAABwdX5iezUtgqpgLZKaIz2pBkX8qUyAADQxiAAAgEdDAEAAAAcAAAAU01U
UDpLSENBUkxTT0BCRUxMU09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