c ++解码pdfs中的CCITT编码图像 [英] c++ decode CCITT encoded images in pdfs

查看:170
本文介绍了c ++解码pdfs中的CCITT编码图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用C ++从PDF文件中提取所有图像。我一直在解码CCITT编码的图像。

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使用ImageMagick Magick ++库,是否可以使用此库进行解码?

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

感谢您的帮助!

推荐答案

CCITT是TIFF支持的编码之一,但在PDF文件中,CCITT图像可能是原始数据。

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

您可以使用 Fax2Tiff 将原始CCITT图像转换为Tiff图像。一旦将图像编码为Tiff,它就应该很容易处理。

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是LibTiff的一部分。请参阅 LibTiff来源

Fax2Tiff is part of LibTiff. See LibTiff Source

这篇关于c ++解码pdfs中的CCITT编码图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆