开发者

c++ decode CCITT encoded images in pdfs

开发者 https://www.devze.com 2023-02-02 16:37 出处:网络
I\'m trying to extract all images out of PDF files in C++. I\'m stuck in decoding CCITT encoded images.

I'm trying to extract all images out of PDF files in C++. I'm stuck in decoding CCITT encoded images.

Does anyone know an opensourced code for this?

I use the ImageMagick Magick++ Library, is开发者_开发知识库 it possible to do the decoding with this library, too?

Thanks for your help!


CCITT is one of the encodings TIFF supports, though in a PDF file the CCITT images are probably raw data.

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

Fax2Tiff is part of LibTiff. See LibTiff Source


Or you can append a header on it and treat it as a tiff file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号