Sunday, March 9, 2008

Preparing Server for PDF Online reading

Both Apache, Versions 1.3.17 and greater, and Microsoft IIS, Versions 3 and greater, should serve PDF pages on demand without additional configuration. The key to serving PDF pages on demand is byte range support by the web server. HTTP 1.1 describes byte range support (http://www.freesoft.org/CIE/RFC/2068/160.htm). Byte range support means that the client can request a specific range of bytes from the web server. Instead of serving the entire file, the server will send just those bytes.

The web server must indicate its support for byte ranges by sending the "Accept-Ranges: bytes" header in response to a PDF file request. Otherwise, Acrobat might not attempt page-at-a-time downloading. If you want to tell clients to not attempt page-at-a-time serving from your server, send the "Accept-Ranges: none" header instead.

1 comments:

PDF Lock said...

PDF is a document format that is widely used. Before the creation of Foxit PDF Reader the popular source of reading PDF document was Adobe Acrobat Reader which uses a enormous amount of memory and is also quite slow at times. Thanks a lot.