GithubHelp home page GithubHelp logo

idarek / foo2zjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikerr/foo2zjs

1.0 1.0 0.0 2.53 MB

HBPLv1 driver for CUPS (2024)

License: Other

Shell 16.67% Perl 0.22% C 60.73% Objective-C 0.78% Tcl 0.20% Makefile 2.24% PostScript 2.04% Roff 17.11%

foo2zjs's Introduction

foo2zjs

HBPLv1 driver for CUPS

This is Dave Coffin's work from here: http://cybercom.net/~dcoffin/hbpl/

this is a Linux driver I wrote for printers that use Host Based Printer Language version 1. You cannot use these printers in Linux without my driver. Known HBPLv1 printer models are:

Dell 1250c

Dell C1660w

Dell C1760nw

Epson AcuLaser C1700

Fuji-Xerox DocuPrint CP105b

There's also an HBPLv2, already supported in Linux, which compresses image data more efficiently. Less expensive printers tend to avoid version 2, either because it requires more processing power, or because it uses patented technology.

This list may be incomplete. If the self-test page says "HBPL" but the printer won't work with Linux, it's probably version 1. To use an HBPLv1 printer, either download this modified foo2zjs package or apply this patch to the offical foo2zjs release.

The essential commands are:

foo2hbpl1 to convert PBM, PGM, PPM, and PAM CMYK images to HBPLv1 format.

foo2hbpl1-wrapper to convert Postscript and PDF documents to HBPLv1 format.

hbpldecode to convert HBPL files, including those generated in other operating systems, to PGM or PPM images.

Images to print should be 5100x6600 pixels for US Letter paper or 4961x7016 pixels for A4 paper. Resolution is always 600x600 dpi. Stay at least 50 pixels (2mm) away from the edges to avoid clipping.

Printing HBPL files is easy -- either "cat" them to the printer device (/dev/usb/lp0 in my case), or use the "lpr" command.

DW Changes (28-04-2024)

As read in this raspberrypi forum post I implemented the change in foo2hbpl1-wrapper.in file only to report right paper size and prevent error message (a seen in tail /var/log/cups/error_log) foo2hbpl1-wrapper: Unimplemented paper code 1.

Checked with Epson AcuLaser C1700 with PPD file provided and OpenPrinting CUPS 2.4.2.

Installation method:

git clone https://github.com/idarek/foo2zjs.git
cd foo2zjs
sudo make clean
sudo make uninstall
make
sudo make install
sudo make cups

Then head to https://raspberrypi.local:631/admin and add your printer.

At the step when selecting drivers, use from PPD.

Test your printer by printing Test Page at https://raspberrypi.local:631/printers/

foo2zjs's People

Contributors

idarek avatar mikerr avatar shinbar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.