Solved

LZW decompress. how to?

Posted on 1998-07-01
5
2,304 Views
Last Modified: 2013-11-19
I have a chunk of bytes LZW compressed. It's a part of a acrobat pdf file. I need to decompress that data to parse that postscript program.
Do you know any way to do that by MFC, or a dll/ocx lybrary (no matter price)?(All libs that I found, work with Tiff/lzw, and I have a plain chunk of bytes)
Help please.
0
Comment
Question by:wau
5 Comments
 
LVL 3

Expert Comment

by:danny_pav
ID: 1318600
Will the functions in LZEXPAND.DLL help you?

0
 

Author Comment

by:wau
ID: 1318601
Like VC++5.0 documentation sais, the Lzexpand.dll functions can only decompress Huffman, Run-Length and Lempel-Ziv methods. Anyway, I tried with LZOpenFile/LZRead/LZClose secuence, and nothing, I read garbage.
I think I need a dll that works with LZW buffer to buffer decompression.
Thanks.
0
 
LVL 2

Expert Comment

by:tdubroff
ID: 1318602
I think any 'LZ' type uncompression is relatively simplistic (at least compared to the compression algorithm).  It might be easy enough for you to do a search on the web for 'LZW' compression and decompression algorithms, and then design your own decompressor.
0
 
LVL 2

Expert Comment

by:duneram
ID: 1318603
here is something you could try.   Write the company (who makes acrobat) and offer to sign an NDA because you are writing something that would be both to their and your benefit.  If you do that, they would then be able to provide you with the layouts and probably decompression alg.

I know this will work if you approach it right, as I used this technique to develop a (internal to a company) ODBC driver for Lotus.   I just went straight to the company, signed an NDA and received several books describing all the information I needed to know.

0
 
LVL 2

Accepted Solution

by:
AlFa earned 20 total points
ID: 1318604
Try zlib (it's gzip from unix) you can find it at codeguru or something like that. it's also included in cimage.lib (source code is available).

0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 157
Expand to include initial dialog with two choices. 9 78
maxBlock challenge 30 129
Way to decrease size of apk file 9 69
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question