Acrobat uses something called byte-serving, which is a pain to support
sometimes on the server-side, because it essentially amounts to serving
parts of a file up to a given byte offset; when Acrobat acts as an HTTP
client, it requests the PDF file, and once it has enough of the top of the
doc to get header info from the file, it is able to omit downloading the
whole thing and request portions of the file between 2 byte offsets, which
represent the start and end of a page, as part of the http request.
Byte-serving, unfortunately is not implemented in all http servers (or is
broken in some, i.e. Apache 1.3.14).  I'm not sure what the story for
ZServer is, but I am curious to find out if there have been any developments
in this regard...

More info in the IETF RFC for HTTP 1.1:


-----Original Message-----
From: Joachim Werner [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 12:28 PM
Subject: [Zope-dev] PDF-specific Bug in the ZServer implementation??? Or
just strange behavoiur of IE?


This is my first post in the new year, so best wishes for 2002 from Germany!

And on we go with my problem:

I have a ZClass-based Class derived from File. It holds PDF documents. SOME
(not all) of them do not auto-open in Acrobat Reader as they are supposed to
if MS IE 5.x is used. Opera etc. seem to work. The files themselves are
o.k., and opening in Acrobat Reader AFTER downloading (via right
mouseclick/save as) works fine, too.

If the same document that doesn't auto-open when downloaded fom the Zope
server is downloaded from plain Apache, it works ...

The configuration is Zope 2.4.1 (binary release, python 2.1, linux2-x86),
python 2.1.0, linux2 on a SuSE Linux with Apache as Proxy server (via
proxy_pass). I checked the HTTP header with WGET, and they are identical for
working and non-working PDF docs. The mime type is set to application/pdf

Any hints on that?


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to