{"id":90,"date":"2009-02-01T15:16:25","date_gmt":"2009-02-01T15:16:25","guid":{"rendered":"https:\/\/windjview.sourceforge.io\/?page_id=90"},"modified":"2021-08-19T12:03:51","modified_gmt":"2021-08-19T12:03:51","slug":"contents-in-djvu","status":"publish","type":"page","link":"https:\/\/windjview.sourceforge.io\/en\/contents-in-djvu","title":{"rendered":"Contents in DjVu"},"content":{"rendered":"<p>DjVu files can contain contents tree with links to chapters and sections of the document. WinDjView will display this tree if a document has it, but the contents will be read-only. A separate tool called <span style=\"color: darkBlue;\">BookmarkTool<\/span> is provided, which can be used to embed contents into a DjVu file (these links are called &#8220;bookmarks&#8221; in DjVu standard, but in WinDjView they are called &#8220;contents&#8221; distinguish them from user-added bookmarks).<\/p>\n<p><a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=114927&amp;package_id=148170\">Download BookmarkTool<\/a><\/p>\n<p>BookmarkTool reads contents from a HTML file with a special structure. Such files are produced by Adobe Acrobat when you export a PDF file to HTML. An example below should be enough to understand the format. The HTML file is assumed to have the UTF-8 encoding, and the value of charset is ignored, even if specified. Please use this encoding for all non-ASCII characters in the bookmarks.<\/p>\n<h2>Example<\/h2>\n<pre style=\"font-size: 1.2em;\">  &lt;html&gt;\n  &lt;body&gt;\n  &lt;ul&gt;\n    &lt;li&gt;&lt;a href=\"#1\"&gt;Link to page 1&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#2\"&gt;Link to page 2&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#3\"&gt;Chapter 1&lt;\/a&gt;\n      &lt;ul&gt;\n        &lt;li&gt;&lt;a href=\"#4\"&gt;Link to page 4&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li&gt;&lt;a href=\"#5\"&gt;Link to page 5&lt;\/a&gt;&lt;\/li&gt;\n      &lt;\/ul&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"\"&gt;Chapter 2, no link here&lt;\/a&gt;\n      &lt;ul&gt;\n        &lt;li&gt;&lt;a href=\"#6\"&gt;Subsection&lt;\/a&gt;\n          &lt;ul&gt;\n            &lt;li&gt;&lt;a href=\"#7\"&gt;Link to page 7&lt;\/a&gt;&lt;\/li&gt;\n            &lt;li&gt;&lt;a href=\"#8\"&gt;Link to page 8&lt;\/a&gt;&lt;\/li&gt;\n          &lt;\/ul&gt;\n        &lt;\/li&gt;\n        &lt;li&gt;&lt;a href=\"#9\"&gt;Link to page 9&lt;\/a&gt;&lt;\/li&gt;\n      &lt;\/ul&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"book.djvu#10\"&gt;Page 10 in book.djvu&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"http:\/\/windjview.sf.net\"&gt;Web link&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n  &lt;\/body&gt;\n  &lt;\/html&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>DjVu files can contain contents tree with links to chapters and sections of the document. WinDjView will display this tree if a document has it, but the contents will be read-only. A separate tool called BookmarkTool is provided, which can be used to embed contents into a DjVu file (these links are called &#8220;bookmarks&#8221; in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/pages\/90"}],"collection":[{"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":11,"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/pages\/90\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/pages\/90\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/windjview.sourceforge.io\/wp-json\/wp\/v2\/media?parent=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}