/zj-58

CUPS filter for thermal printer Zjiang ZJ-58

Primary LanguageCBSD 2-Clause "Simplified" LicenseBSD-2-Clause

!!! NOTE !!!

THIS REPOSITORY IS ARCHIVED AND IS NO LONGER SUPPORTED OR MAINTAINED

zj-58

CUPS filter for thermal printer Zjiang ZJ-58

The linux driver provided on Zjiang site unfortunately doesn't work. First, it is 32-bit binary (and so, on x64 system need some x86 libs to be installed). Second, it's PPD is not correct - it just doesn't show any advanced settings because of it. Finally, raster filter just crashes on any try to run it! But even if you run it, you'll see that it's working with printer is not optimal: for example, if it sees a blank line, it will send the blank raster to print (instead of just use 'feeding' command, which is definitely faster!)

This is the solution: PPD is fixed and works. Filter is provided as src (you can found a list of packages need to be installed in order to build it in the header of source). Also, printing of blank lines is optimized.

In order to re-compile the binary (e.g. on a Raspberry Pi), the following libraries must be installed.

On Debian-based distros (e.g. Raspberry OS, Ubuntu, Mint...) run:

sudo apt-get install libcups2-dev libcupsimage2-dev g++ cups cups-client

On Arch-based distros (e.g. Arch, Manjaro...) run:

sudo pacman -S base-devel cups cups-filters cups-pdf libcups system-config-printer lib32-libcups cups-pk-helper

After that, make and sudo ./install do the right thing.