pdfimages: options to add a container to JBIG2 and CCITT data
The current extraction of (embedded) JBIG2 (stream) does not include any header (like 0xFF 0xD8
for JPEG), at least when there is no global data. The jbig2 output produced by jbig2enc will add a header to indicate that this is a JBIG2 file. Although this might not be standardized, it is helpful to add such a header so that it could be passed to subsequent applications like img2pdf
.
Similar for CCITT: it seems better to have an option to contain the CCITT into a TIFF file without any conversion, but just including a container to facilitate the subsequent processing. Unlike -tiff
option, it will not convert everything else to TIFF, nor perform any conversion between different types of TIFFs.