pbmtozjs.c Version 0.01 28.08.2002 This program converts pbm images (produced by ghostscript) to Zenographics ZJ-stream format. This utility makes possible to use the HP LaserJet 1000 printer under Linux or other operating systems. This program uses Markus Kuhn's jbig compression library, which can be obtained from "http://www.cl.cam.ac.uk/~mgk25/jbigkit/". Information about the ZJS format can be found at Zenographics's website "ddk.zeno.com". Compiling: 1) install jbigkit 2) copy jbig.h and libjbig.a into the directory of pbmtozjs 3) run the command: gcc -O2 -W -o pbmtozjs pbmtozjs.c libjbig.a This preliminary version recieves the PBM file on the standard input and writes the ZJS strem onto the standard output. For example if you intend to use it with ghostscript and LaserJet 1000 then try the following gs -q -r600 -g4736x6817 -sDEVICE=pbmraw -sOutputFile=- -dNOPAUSE -dBATCH \ <psfile> | pbmtozjs | lpr where <psfile> is the a postscript file. Note that this program is machine dependent. It works well on x86 machines. Copying is permitted under GNU's General Public License (GPL) Copyright (c) Robert Szalai