简体   繁体   English

C ++解码PDF中的CCITT编码图像

[英]c++ decode CCITT encoded images in pdfs

I'm trying to extract all images out of PDF files in C++. 我正在尝试从C ++的PDF文件中提取所有图像。 I'm stuck in decoding CCITT encoded images. 我被困在解码CCITT编码的图像中。

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

Thanks for your help! 谢谢你的帮助!

CCITT is one of the encodings TIFF supports, though in a PDF file the CCITT images are probably raw data. CCITT是TIFF支持的编码之一,尽管在PDF文件中CCITT图像可能是原始数据。

You can convert a raw CCITT image into a Tiff image using Fax2Tiff . 您可以使用Fax2Tiff将原始CCITT图像转换为Tiff图像。 It should be easy enough to work with the image once it is encoded as a Tiff. 一旦将图像编码为Tiff,使用图像应该足够容易。

Fax2Tiff is part of LibTiff. Fax2Tiff是LibTiff的一部分。 See LibTiff Source 参见LibTiff来源

或者,您可以在其上附加标头,并将其视为tiff文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM