Extracting CCITTFaxDecode images

I'm currently trying to extract an image from a pdf file

The pdf is made from a scanner i.e ImagePDF: it has a single page that contains one big image.

this image is encoded with /ASCII85Decode /CCITTFaxDecode .

So i want to decode the stream..??? is it possible.???

When looking at the file I find the following:

PDF-1.4

1 0 obj

<<

/Type /XObject

/Subtype /Image

/Width 2544

/Height 3396

/ColorSpace 3 0 R

/BitsPerComponent 1

/DecodeParms [

<<

>>

<<

/Rows 3396

/BlackIs1 true

/Columns 2544

/K -1

>>

]

/Filter [

/ASCII85Decode

/CCITTFaxDecode

]

/Length 2 0 R

>>

stream

jb4%GH6W]o7mrTKL<rMVS?&$ukor/HN[!\IN/H%QM"2j*Th@p#8@g8gA2H\sk4=BSO<?i`4qgHu,tXA5&

:Q*8<6rNWXst#),O#fg7X=Vo/DnR_i'i[sDeY8@gW?dTH;FqJM1m

1-:oS#+2";:pL;[BtUkdkdq#UWC0%LG])K*8/U:dmE!fuGrWMFe7h(.Ah_3V6iK40<PNaGu'jP\?Ihl.@

Hi Satish,

Do you mean you just want to extract this image from the PDF file or you want to process this image after extracting it? Which platform you’re working with – .NET or Java? Also, please share the input PDF file with us, so we could investigate the issue at our end and guide you accordingly.

Regards,

yes process this image after extracting it, Actualy I want to decrypt the PDF stream.! and i am using .NET.!

Hi Satish,

I would like to share with you that Aspose.Pdf for .NET allows you to extract images from the PDF files. You may try the following example: Extract Images from the PDF File. If you want to apply OCR on the extracted image then you may try Aspose.OCR for .NET.

I hope this helps. If you find any further questions, please do let us know.
Regards,