You are reading help file online using chmlib.com
|
To serve DjVu documents on the Web, use one of the following techniques:
http://myserver/path/file.djvu
http://myserver/path/file.html
Web browsers associate content with external programs (such as the Lizardtech DjVu Browser Plug-in) using MIME types. The MIME type for DjVu documents is
image/vnd.djvu
Because this MIME type is registered with the Internet Assigned Numbers Authority (IANA), many popular Web servers will serve DjVu documents correctly with no special configuration. If this is not the case for your server, consult your Web server documentation and associate the DjVu files (including any indirectly referenced files) with the correct MIME type, “image/vnd.djvu”.
Specifically, you should configure the ".djvu" and ".djv" extensions with the “image/vnd.djvu” MIME type. Additionally, if you are serving indirect files, then we recommend similar configurations for the following extensions: ".djbz", ".thumb", .and ".iff". Some applications create DjVu files with no extensions at all (view the file locally and check the Document Information dialog box to see the indirectly included file names). In this case, configure your Web server to send the correct MIME type for all (.*) files in the relevant directories.
If you configure the MIME type correctly, then a simple "href" will correctly open your documents on a user’s Web browser:
<a href=“filename.djvu”>My DjVu Document</a>
If you cannot configure the MIME types for your server, you can still embed the DjVu documents in HTML pages and specify the MIME type there (see "Embedding DjVu Documents in HTML Pages").
If the MIME type is not correctly specified, then what happens when the user clicks on this link is browser-specific and generally undesireable.
To support older versions of the DjVu Browser Plug-in, set the MIME type as "image/x.djvu".
Embedding DjVu Documents in HTML Pages
You are reading help file online using chmlib.com
|