Synopsis
Parameters
Example
Decoding to a File or Directory
The djvudecode command decodes DjVu® files into the output file format specified by the output-format option. If you do not specify an output format, Document Express bases the format on the extension you assign to the output file name.
djvudecode
[options...] <input.djvu> <outputfile|outputdir>
options – Specifies an optional decoding requirement. You can specify multiple options each time you run a command. See the table below.
djvudecode Options |
|
|
|
--dpi=<-1200 to -25, 0, 25 to 1200> |
|
|
input.djvu – Specifies the name of the input DjVu file that you are decoding. If you are decoding an indirect DjVu document, this file is the name of the index file. For more information about the indirect format, see Indirect DjVu Documents.
outputfile|outputdir – Specifies a name for either the output image file or the output directory.
djvudecode --output-format=jpg --tobitonal --rotate=90 input.djvu output.jpg
To decode a single-page DjVu document, specify an output that is a file. For example:
djvudecode
flyer.djvu flyer.jpeg
To decode a bundled or indirect DjVu document into a multiple-page TIFF, PNM, PPM, PGM, PBM, or PS image file, specify an output that is a file. For example:
djvudecode
flyerlong.djvu flyerlong.tiff
To decode a bundled document into several image files, specify an output that is an existing directory. Each page of the document is written to a separate file in that directory. For example:
djvudecode --ouput-format=bmp flyerlong.djvu new_ads
To decode an indirect document into several image files, list the index file as the input and specify an output that is an existing directory. Each page of the document is written to a separate file in that directory. For example:
djvudecode --output-format=pnm /old_ads/index.djvu new_ads
All DjVu files that comprise the indirect document must be located in the same directory before you begin decoding. For more information, see Indirect DjVu Documents.
JPEG and BMP file formats do not support a multiple-page output. If you attempt to decode a multiple-page DjVu document and specify an output that is one of these formats, Document Express Enterprise stops the decoding process and displays an error message.
When a DjVu 2.0 indirect document is given as input, the page-range option becomes mandatory.