I writing a app to extract text from a PDF file - I'm able to extract the text if the PDF file is compressed with Flatedecode - But it fails if the compression is CCITTFaxDecode. Can anyone help me to get the filter for CCITTFaxDecode compression. Thanks in advance
Adobe Acrobat
Last Comment
Karl Heinz Kremer
8/22/2022 - Mon
Karl Heinz Kremer
Text should never be encoded with CCITTFaxDecode - that is a filter that is only useful for monochrome images (black dots on white paper or vice versa). Are you sure that you need that filter for text extraction?
What environment are you using? Are you using any PDF library (that would be the ideal situation, because you really do not want to write the complete PDF handling from scratch)?
fritzdsa
ASKER
I'm using the code found at http://www.codeproject.com/KB/cpp/ExtractPDFText.aspx
This code assumes that the PDF file has text objects compressed using FlateDecode filter and it uses zlib for uncompressing the streams.
But my PDF files have text behind image and the filter used is CCITTFaxDecode - Now I want to know how do I uncompress this filter. Thanks in advance
What environment are you using? Are you using any PDF library (that would be the ideal situation, because you really do not want to write the complete PDF handling from scratch)?