The easiest way to include DjVu documents in Web pages is to use the <EMBED> or <OBJECT> tag within the <BODY> section of the HTML file. For example, the following code displays a DjVu file at its full size:
<EMBED TYPE="image/x-djvu" SRC="[insert DjVu URL here]" WIDTH="100%" HEIGHT="100%">
For example, if the file name is demo.djvu, you could use the following HTML code:
<HTML>
<BODY>
<EMBED TYPE="image/x-djvu" SRC="demo.djvu" WIDTH="100%"
HEIGHT="100%">
</EMBED>
</BODY>
</HTML>
The SRC, WIDTH, and HEIGHT parameters are required for the <EMBED> tag. To set the dimensions of the image in the demo.djvu file to 250 pixels wide by 200 pixels high, use the following code:
<EMBED TYPE="image/x-djvu" SRC="demo.djvu" WIDTH="250" HEIGHT="200">
If you use Microsoft® Internet Explorer, you may have better results with the <OBJECT> tag instead of the <EMBED> tag. The <OBJECT> tag replaces the SRC parameter with the DATA parameter. For example:
<OJBECT TYPE="image/x-djvu" DATA="demo.djvu" WIDTH="100%" HEIGHT="100%"></OBJECT>
DjVu products provide a number of unique parameters to use within the <EMBED> and <OBJECT> tags. For a list, see the Help.html file that comes with the DjVu Web Browser Plug-in. By default, this file is installed in the plug-ins folder for your browser.
The DjVu Web Browser Help file also includes CGI-script examples for including DjVu documents in a Web page.
For more information about the <EMBED> and <OBJECT> tags, see your preferred HTML reference.