Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello frnds..
i need to extract inline object images from a pdf file...the image is compressed using CCITFaxDecode...i am using c++....how should i do it?

there are no open source libraries for decompressing CCITTFaxDecode...as per my knowledge...

can somebody help?
here's a part of the pdf...
stream
0 0 0 0 89 77 d1
89 0 0 77 0 0 cm
BI
/IM true/W 89/H 77/BPC 1/F/CCF/DP<</K -1
/Columns 89
/BlackIs1 true
>>
ID & N`~…ùLü ¿á~/ÂòàÉðA~_‚ð_„
“ÿ
ÿ‚ü ˆfþN
ø?ø ÿðþþÿÁ„@üùáðƒ¿ÿ‚‚ÿPŸ œ?ÿÿÿÿþG´þ ð‚øà¸
Posted
Updated 15-Dec-11 19:37pm
v3
Comments
Emilio Garavaglia 16-Dec-11 2:38am    
Anna, you should have been post this as a solution, not as a comment. Can you delete it and resubmit it in the "solution" box?
Resmi Anna 16-Dec-11 2:54am    
i am not sure if it works. thats y..anyway done:)

 
Share this answer
 
Comments
Member 8367060 16-Dec-11 4:14am    
i am sorry...not able to open this link
Emilio Garavaglia 16-Dec-11 5:15am    
To me, it worked!
Member 8367060 16-Dec-11 4:35am    
I don't have a clue...someone please help me..
Resmi Anna 16-Dec-11 6:20am    
If i copy paste the code here it will be too long. No way to access that url?That site is also an information exchange place. like code project.
A PDF file is not a simple stream but a collection of objects that are linked by various internal tables. You need to get a copy of the PDF specification from the Adobe website for full details. Alternatively you can search for third-party libraries that will help you read it.
 
Share this answer
 
Comments
Member 8367060 16-Dec-11 5:44am    
i have already read the specification...i am able to decompress the text using FlateDecode using zlib...but now i have problem when i try to extract text using type 3 fonts...as these do not have any mapping information(cmap,tounicode tables)...
In this case,they are in the form of inline images using CCITTFaxDecode for compression...zlib cannot be used for decompression in this case..i want to know if there is some way to do this
Richard MacCutchan 16-Dec-11 6:00am    
This link is the best that I can come up with I'm afraid. Alternatively you could try looking into the iTextSharp source code to see if that offers any clues.
Member 8367060 16-Dec-11 5:59am    
d1 in the stream is actually an operator that refers to type3 font
Member 8367060 16-Dec-11 6:33am    
i don't think itextsharp can be used for c++ code
Richard MacCutchan 16-Dec-11 6:37am    
I know, I suggested that you look at the source code to see if there are any clues as to handling this data type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900