ddjvu: Does it really support converting to PDF?

ddjvu (DjVuLibre), 3.5.28:

ddjvu --help

returns

-format=FMT       Select output format: pbm,pgm,ppm,pnm,rle,tiff.

Note that it doesn’t mention PDF. But then, why does the folowing command works and converts input DjVu file to output PDF one?

ddjvu -format=pdf -quality=85 input.djvu output.pdf
Asked By: jsx97

||

Since you get valid PDF output, it seems that ddjvu does indeed support PDF output, even though its --help description doesn’t list that format (which is still the case in the development repository).

In fact, man ddjvu does list PDF as an output format. Looking at the source code shows that, as long as ddjvu is built with a recent enough version of libtiff (“recent” meaning newer than November 11, 2004), it will support PDF output.

It’s likely that the omission of pdf from the ddjvu --help output is just an oversight.

Answered By: Stephen Kitt
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.