DjVu multipage documents creator.
Synopsis
djvm [options] <djvu_doc_name> [djvufiles] [pagenum]Description --- File "djvm.cpp" and program djvm illustrate how class DjVuDocEditor can be used to create and modify DjVu multipage documents. The program demonstrates how to pack several DjVu single-page files together, how to remove pages from a multipage document or how to insert new.
Arguments --- Depending on the task to be performed, the number and types of arguments differ:
- To create a new document
djvm -c[reate] <doc.djvu> <page_1.djvu> ... <page_n.djvu>
This will package pages represented by files <page_1.djvu> ... <page_n.djvu> into BUNDLED multipage DjVu document <doc.djvu> (see DjVuDocument for the explanation of the BUNDLED format). The specified page files may include other files (by means of INCL chunks). They will also be packed into the document.
- To insert a page
djvm -i[nsert] <doc.djvu> <page.djvu> [<page_num>]
This will insert page represented by file <page.djvu> into document <doc.djvu> as page number <page_num> (page numbering starts from 1). Negative or missing <page_num> means to append the page.
The <page.djvu> file can actually be another multipage DjVu document. In this cases, all pages from that document will be inserted into <doc.djvu> starting from page <page_num>.
- To delete a page
djvm -d[elete] <doc.djvu> <page_num>
This will remove page number <page_num> from document <doc.djvu>. If there is only one page left in <doc.djvu> after deletion, it will automatically be converted to a single page DjVu file format. Page numbering starts from 1.
- To view document contents
djvm -l[ist] <doc.djvu>
This will list all files composing the given document <doc.djvu>. The files list includes the names of page files plus names of any files included into the page files by means of INCL chunk.
Alphabetic index Hierarchy of classes