C ++ decodes CCITT-encoded images in pdf files

I am trying to extract all images from PDF files in C ++. I am stuck in decoding encrypted CCITT images.

Does anyone know that there is open source code for this?

I use the ImageMagick Magick ++ library, is it possible to do this with this library too?

Thank you for your help!

+4
source share
2 answers

CCITT is one of the TIFF-compatible encodings, although CCITT images are probably raw data in a PDF file.

You can convert a raw CCITT image to a Tiff image using Fax2Tiff . It should be easy enough to work with the image when it is encoded as Tiff.

Fax2Tiff is part of LibTiff. See Source LibTiff

+4
source

Or you can add a header to it and treat it as a tiff file.

+3
source

Source: https://habr.com/ru/post/1257877/


All Articles