I'm using gs
to remove some bad OCR from PDFs that are essentially images of book pages with invisible text layers. The page images in some of these are encoded as JBIG2. When I run them through gs, it changes the image format to CCIT, which usually isn't bad, but can be anywhere from 10 to 20 times bigger than the JBIG2 versions.
I was looking for a way to either have gs leave them alone - like PassThroughJPEGImages - or re-encode them with MonoImageEncoder, but I was unsuccessful. I didn't find any analogous passthrough option and got an error on setting the encoder to JBIG2Encode. I assume from what I did find that the latter isn't a standard option, but requires Luratech libraries.
Can anyone confirm or - preferably - explain my mistake?
TIA.