DjVu multipage document converter.
Synopsis
djvmcvt -b[undled] <doc_in.djvu> <doc_out.djvu> or djvmcvt -i[ndirect] <doc_in.djvu> <dir_out> <idx_fname.djvu>Description --- File "djvmcvt.cpp" and the program djvmcvt serve the purpose of convertion of obsolete DjVu documents into the new formats. The program can also read documents in the new formats, so you can use it to perform conversion between BUNDLED and INDIRECT formats. This is a simple illustration of the capabilities of DjVuDocument class.
As a matter of fact, there are two ways to make conversion between different formats:
- If the input format is one of obsolete formats (OLD_BUNDLED or OLD_INDEXED) then the conversion can be done by DjVuDocument only.
- If the input format is one of new formats (BUNDLED or INDIRECT) then the best candidate to perform conversion is DjVmDoc class. It will do it at the lowest possible with the least expenses.
Arguments --- Depending on the output format, the number and types of arguments differ. The second argument though (<doc_in.djvu>) is the same in both cases, and depending on the format of input document, it means:
.
- OLD_BUNDLED format: just name of the document
- OLD_INDEXED format: name of any page of the document
- BUNDLED format: name of the document
- INDIRECT format: name of the top-level file with the list of all pages of the document.
So, in order to do conversion choose one of syntaxes below:
- To create a new BUNDLED document
djvmcvt -b[undled] <doc_in.djvu> <doc_out.djvu>
This will read the document referenced by <doc_in.djvu> as descrived above, will convert it into the BUNDLED format and will save the results into the <doc_out.djvu> file.
- To create a new INDIRECT document
djvmcvt -i[ndirect] <doc_in.djvu> <dir_out> <idx_fname.djvu>
This will read the input document referenced by <doc_in.djvu> as described above, will convert it into the INDIRECT format and will save it into the <dir_out> directory. Since DjVu multipage documents in the INDIRECT formats are represented by a bunch of files, you have to specify a directory name where all of the files will be saved. In addition to these files the program will also create a top-level file named <idx_fname.djvu> with the list of all pages and components composing the given DjVu document. Whenever you need to open this document later, open this top-level file.
Alphabetic index Hierarchy of classes