foo2zjs
Convert Ghostscript output for ZjStream printers
SYNOPSIS
foo2zjs [-options] [input.{ps|pdf}] > output.zjs
PARAMETERS
-h or -?
Display help summary
-p first-last
Print specific pages (e.g., -p1-3)
-P
Print test page instead of input
-d 1
Enable duplex printing
-s letter|a4|...
Set paper size (default: letter)
-c
Enable color printing
-g gamma
Set gamma correction (0.1-3.0)
-r 600x600
Set resolution (300/600 dpi)
-l left
Left margin in points (default 18)
-t top
Top margin in points (default 36)
-z#
ZJS compression level (0-3, default 3)
-n #
Number of copies
-q
Quiet mode, suppress status
-V
Print version info
DESCRIPTION
The foo2zjs command converts PostScript or PDF input into ZJS (Zoran ZJS) raster format, specifically designed for low-cost HP LaserJet printers like the 1000, 1005, 1018, 1020, and 1022 series. These printers use a custom ZJS compression algorithm, and foo2zjs implements a high-quality driver outside of proprietary HP software.
It processes input via Ghostscript internally, supporting features like duplex printing, custom paper sizes, resolution adjustments, and color modes. Ideal for Linux users needing reliable printing on these models without HPLIP. Output is raw ZJS data, typically piped to /dev/usb/lp0 or used with foo2zjs-wrapper for CUPS integration.
Key strengths include excellent text rendering, efficient compression for 600dpi output, and options for fine-tuning margins, gamma correction, and halftoning. Limitations apply to newer printers; verify compatibility first. Install via package managers (e.g., apt install printer-driver-foo2zjs) and use with enscript or a2ps for text-to-PS conversion.
CAVEATS
Requires Ghostscript; limited to specific HP models; no native PDF support (uses gs); test compatibility as some firmwares vary.
High-res output increases file size.
EXAMPLE USAGE
Test page: foo2zjs -P > test.zjs
Print PS file: foo2zjs -r600x600 -s a4 file.ps > out.zjs
Send to printer: cat out.zjs > /dev/usb/lp0
INSTALLATION NOTE
On Debian/Ubuntu: sudo apt install printer-driver-foo2zjs. Run getweb 1018 for firmware download.
HISTORY
Developed 2003 by Till Kamppeter, Marty Leisner et al. as open-source alternative to HP drivers. Integrated into major distros; active until ~2010 with occasional updates.
SEE ALSO
foo2zjs-wrapper(1), foo2qpdl(1), gs(1), enscript(1), lp(1)


