g4lzw - smilingthax/unpdf GitHub Wiki

These libraries can be used separately; the directories g4coder and lzwcoder are basically self-contained (the lzwcoder directory currently contains a symbolic link to the files gfxfiles.c/gfxfiles.h from g4coder. If you want only lzwcoder you have to get them separately from g4coder...).

You can even checkout these libraries only, using SVN:
svn checkout https://github.com/smilingthax/unpdf/trunk/g4coder g4coder
resp.
svn checkout https://github.com/smilingthax/unpdf/trunk/lzwcoder lzwcoder.

The libs also include a small command-line utility to for en-/decoding. For usage see

g4coder --help

resp.

lzwcoder --help

Have a look at g4coder/g4code.h for the C API, even when only using lzwcoder.