LinuxCommandLibrary

foo2hbpl2

Convert foo2zjs output to HP/PCL

SYNOPSIS

foo2hbpl2 [-P<printer>] [-p<media>] [-n<copies>] [-x<printwidth>] [-y<printheight>] [-l<length>] [-m<margin>] [-d<duplex>] [-L<hres>] [-H<vres>] [-z<levels>] [-q<quality>] [-s<speed>] [-t] [-k] [-r] [-c] [file]

PARAMETERS

-P
    Set printer model (e.g., -P1000)

-p
    Paper size (e.g., -p letter, a4)

-n
    Number of copies to print

-x
    Print width in pixels

-y
    Print height in pixels

-l
    Paper length in decipoints

-m
    Paper margins in pixels

-d<0|1>
    Disable (0) or enable (1) duplex

-L
    Horizontal resolution (e.g., 300)

-H
    Vertical resolution (e.g., 300)

-z
    Toner density levels (1-16)

-q
    Quality mode: 0=fast, 3=best

-s
    Speed mode: 0=fastest, 3=slowest

-t
    Use toner save mode

-k
    Disable compression

-r
    Raw mode, no header/footer

-c
    Classify HBPL version

DESCRIPTION

The foo2hbpl2 command is a specialized printer driver within the foo2zjs suite, designed to convert Ghostscript-generated PCL data into the HBPL/2 (Host-Based Printer Language version 2) format used by certain entry-level HP LaserJet printers. These include models like the HP LaserJet 1000, 1005, 1010, 1012, 1018, 1020, 1022, and M1005 MFP.

It functions as a low-level filter, typically invoked via the higher-level foo2hbpl2-wrapper, which handles PostScript to PCL conversion using Ghostscript. This enables printing on non-PostScript printers through CUPS or LPD systems. The driver supports features like duplexing, multiple resolutions, toner density control, and media sizes.

Usage involves piping raster or PCL data through the command with options for paper size, copies, quality, and more. It's essential for Linux users with these HP printers, providing open-source support where proprietary drivers may lack. Install via foo2zjs package, often requiring compilation from source for latest features.

CAVEATS

Requires foo2zjs package; compile from source for USB support. Limited to specific HP models. Use wrapper for PostScript input. May need ghostscript for full functionality.

SUPPORTED PRINTERS

HP LaserJet 1000/1005/1010/1012/1018/1020/1022; M1005 MFP. Check foo2zjs wiki for full list.

INSTALLATION NOTE

Download from foo2zjs.rkkda.com; run getweb 1000 for firmware.

HISTORY

Developed by Perry L. Nixon in 2003 as part of the foo2zjs project to reverse-engineer HP's host-based printing protocols. Evolved through community contributions; integrated into major distros like Ubuntu via apt.

SEE ALSO

foo2hbpl2-wrapper(1), foo2zjs(1), gs(1), lp(1)

Copied to clipboard