?
Solved

LZW decompress. how to?

Posted on 1998-07-01
5
Medium Priority
?
2,372 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 40 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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 …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

752 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