I would have to see your original myfile.djvu.
Fix initial zoom value description
Well, a djvu file can be several things: a single page file (FORM:DJVU). Cjb2 and c44 produce such files. a bundled document (FORM:DJVM) which may contain one of more pages, themselves encoded as FORM:DJVU. It also contain a page directory, and may contain shape dictionaries and navigation menus. Such documents are created with "djvm -c". You can use the program 'djvudump' to know what's inside a djvu file. Command "djvm -l" does not work on the output of cjb2 because it is designed to work on biundled...
ddjvu can indeed generate a pdf (essentially an encapsulated tiff).
Option -1 or --subsample=1 ensure that the output resolution matches that of the input image. Note that this is the default when you use the --format option (which you should always use.) Note that when you use --format=pbm, you force the output to be a pbm file which can only encode binary images. Even if you were to subsample the image (making the mask gray level), it would be tresholded into a binary image to produce a pbm file. These PBM files start with the two letters "P4". If this is the case,...
ddjvu -1 should always return a binary mask as a PBM files. PBM files can only represent binary images anyway. https://linux.die.net/man/5/pbm On 2024-08-26 11:26, Janusz wrote: Perhaps I misinterpreted the identify output: Augezdecki-01a_PT08_403_mask.pbm PBM 1711x353 1711x353+0+0 1-bit Bilevel Gray 75554B 0.000u 0:00.001. Moreover the mask file was rejected as non-binary by a Python script written for me by ChatGPT. I have to investigate the problem more closely. [BUGS:#357] [1] THE MASK EXTRACTED...
improve build-gsdjvu for partial operation
dldbfd/arm64 -- fixed most important relocs