djvudecode

Synopsis
Parameters
Example
Decoding to a File or Directory

Restriction

 

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.

 

Synopsis

djvudecode [options...] <input.djvu> <outputfile|outputdir>

 

Parameters

optionsSpecifies an optional decoding requirement. You can specify multiple options each time you run a command. See the table below.

 

djvudecode Options

Setup options

--profile=<name>

--config=<filename>

--output-format=<format>

--filelist=<filename>

--page-range=<range>

 

Transform options

--dpi=<-1200 to -25, 0, 25 to 1200>

--vflip

--hflip

--rotate=<angle>

--crop=<x0>,<y0>,<w>x<h>

--togray

--layer=<layer_type>

--upsample=<factor>

--subsample=<factor>

--resize=<w>x<h>

--tobitonal=[<1-255>]

 

Other options

--help

--verbose

 

 

input.djvuSpecifies 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|outputdirSpecifies a name for either the output image file or the output directory.

 

Example

djvudecode --output-format=jpg --tobitonal --rotate=90 input.djvu output.jpg

 

Decoding to a File or Directory

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.

 

Restriction

When a DjVu 2.0 indirect document is given as input, the page-range option becomes mandatory.