|
Assume, for instance, that we have a PPM image myimage.ppm and an identically sized PBM bitonal image mymask.pbm whose black pixels indicate which pixels belong to the foreground. Such a bitonal file might have been obtained by thresholding or color-keying the PPM image. We can then produce a DjVuDocument image using the following two commands:
The DjVu specification documents in the directory doc of the DjVuLibre distribution provide the authoritative information about the composition of a legal DjVu image file.