Embedding a document

Embedding a document displays it as part of the HTML page and does not require that the Web server support the DjVu MIME types. This method also allows you to list captions and other annotations with the document.

To embed a DjVu document within an HTML page, you can use either the HTML <object> or <embed> tag.

Using the <embed> tag

The <embed> tag is supported in both Netscape® Navigator and Microsoft® Internet Explorer. The src, width, and height attributes are required for the <embed> tag. In this example, the document is displayed at its full size.

<embed type="image/x.djvu" SRC="filename.djvu" width="100%" height="100%"></embed>

In this example, the dimensions are set to 250 pixels wide by 200 pixels high:

<embed type="image/x.djvu" src="filename.djvu" width="250" height="200">

Using the <object> tag

Although the object tag is not supported in Netscape, there is a way to code an embedded image so that it will display in both Netscape and Internet Explorer. Follow this example: <object classid="clsid:0e8d0700-75df-11d3-8b4a-0008c7450c4a" width="100%" height="100%"> <param name="src" value="foodjvu"> <embed type="image/x.djvu" src="foo.djvu" width="100%" height="100%">

where width and height can be set to other values, and "foo.djvu" can be substituted with the actual relative or absolute URL that should be opened.

LizardTech Web page