Solved

LZW decompress. how to?

Posted on 1998-07-01
5
2,291 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now