Last post Mar 19, 2010 05:31 AM by taliesins
Sep 18, 2006 03:38 PM|secretasianman75|LINK
I've been banging my head on the wall on this for a wall. If there anybody has been able to do this, I would love to hear from you.
When IIS serves a pdf file, it does it in way called byte-serving. Basically sending a pdf file in small increments so that first page of the file loads immediately instead of waiting for the whole file to be downloaded. I am unable to replicate this
behavior when serving PDF files with my custom handler. I have many non-us customers with slow connections and this is a near show stopper for me :(.
Any help, much appreciated.
Sep 19, 2006 08:01 PM|mbanavige|LINK
a couple points about how acrobat appears to request files
the initial request is for the entire file
if the server responds with the appropriate range header (Accept-Ranges: bytes), acrobat cancels the initial request for the full file
acrobat then restarts the request as a byte range request
pdf files intended to be served in byte ranges should be linearized (web optimized) for best performance when they are created.
be prepared to receive invalid range requests - for ranges that go past the end of the file.
Jul 01, 2008 08:51 AM|alhambraeidos|LINK
Mister, I cannot access
http://msdn.microsoft.com/msdnmag/issues/06/09/WebDownloads/, I think the page was deleted :'( I'm very sad about it
Can you post all code about it, or sample code about this issue ??, please
Thanks in advance...
Mar 19, 2010 05:31 AM|taliesins|LINK
Adobe Reader in "Allow fast web view" mode starts downloading a pdf and soon as it has enough bytes to display the first page it aborts the connection to the web server, and displays the first page. Then it makes a "multipart/byteranges"
request to retrieve the rest of the document. This is what causes most download scripts to fail when serving pdf content.
If you are looking for an http handler that can serve pdf files (and support multipart/byteranges) have a look at :