Solved

LZW decompress. how to?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 113
Generic progress indicator 6 117
VBA "SendKeys" Syntax for Multiple Keystrokes 7 117
withoutTen challenge 14 131
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

791 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