David Marsh <[EMAIL PROTECTED]> writes:

> Is it actually possible to 'stream' PDF files with wwwoffle?
> (I hope I have my terminology right here!)

> If, while online, I click on a link to a PDF file, I expect my browser
> (usually Konqueror, sometimes Mozilla, etc) to try to open the PDF file 
> (usually using the KDE embedded PDF viewer in this case, sometimes Acrobat).
> 
> However, it seems that the process of downloading/caching the PDF file
> via wwwoffle confuses the PDF viewer: I get the impression that the PDF
> viewer receives the first few bytes of the file, tries to view that as
> if it were the completed file, fails, and gives up.. :-(

What gives that impression?

Do you get any error messages from WWWOFFLE when this happens?

> Is it possible to configure wwwoffle in some way that PDF files are not
> passed on to the viewing application until the file is completely
> downloaded?

That surely would be the exact opposite of 'streaming'?

> I'm only making an ignorant guess as to why this seems to be happening:
> I apologise if this is not an issue with wwwoffle but with something
> else in my configuration. However, if I don't use the wwwoffle proxy, it
> seems that PDF files are viewed correctly as and when downloaded.

If a browser asks for a PDF file when online then the server will send
the file to it.  There is no way for the browser to stop the server
from sending the whole file at once.

If the browser decides only to read part of the data from the server
and leave the rest for later then there is no reason why the server
could not just break the connection.

If the browser asks the server to only send part of the file (using
byte ranges) then there is no guarantee that the server will obey this
and the browser must handle the whole file.

Unless the server (or proxy, since all of the above applies to proxies
also) sends a corrupted file then the browser must handle the result.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.7/user.html

Reply via email to