iTextSharp - Problem while extracting images with CCITTFaxDecode

Posted by user184865 on Stack Overflow See other posts from Stack Overflow or by user184865
Published on 2009-10-06T09:44:26Z Indexed on 2010/03/30 11:03 UTC
Read the original article Hit count: 1049

Filed under:

Hi All,

I am using iTextSharp to extract images from PDF. However, if the images are CCITT fax decoded, the bitmap creation fails with "Parameter not valid" error.

As PdfReader.GetStreamBytesRaw returns CCITT encoded bytes, bitmap creation fails.

Can someone please help me with decoding CCITT encoded bytes and in turn create a bitmap out of it?

Thanks, Chandru

© Stack Overflow or respective owner

Related posts about itextsharp