LinuxCommandLibrary

foo2hiperc-wrapper

Print jobs to specific Minolta/Konica printers

SYNOPSIS

foo2hiperc-wrapper [generic options] [-z#] [-p#] [-dMODEL] [-E] [-P] [-L] [-X#] [-Y#] [-s#] [-m#] [-l#] [-b#] [-c] [-k] [-K#] [-G#] [-U] [-u] [-t] [-S] [-I] [-N] [-H] [-P filename] [-e#] [-r] [-v] [-1] printer [-] < input.pcl

PARAMETERS

-z#
    Graphics resolution: 1=300dpi, 3=600dpi, 6=1200dpi effective

-p#
    Paper size: 1=Letter, 2=A4, 3=Legal, etc. (see man page for codes)

-n#
    Number of copies (generic option)

-dMODEL
    Printer model: p1005, p1006, etc.

-E
    Engineering mode (full pagewidth bleed)

-P
    PPD postscript option (generic)

-L
    Landscape mode

-X#
    X offset in pixels

-Y#
    Y offset in pixels

-s#
    Page length in lines (generic)

-m#
    Page width in characters (generic)

-l#
    Label mode: copies per sheet

-b#
    Bolden thin text: 0-8

-c
    Color mode (grayscale for mono)

-k
    Toner save (lighter print)

-K#
    Toner density: 0-100

-G#
    Gamma correction: 0.1-3.0

-U
    Upload firmware

-u
    Do not upload firmware

-t
    Text-only mode

-S
    Short-edge duplex

-I
    Ignore errors

-N
    No printer status check

-H
    HH scaled (half horizontal)

-P filename
    Read PPD options from file

-e#
    Error level

-r
    Raw mode (no processing)

-v
    Verbose mode

-1
    Print page 1 only

-?
    Display usage summary

DESCRIPTION

The foo2hiperc-wrapper is a Linux command-line utility from the foo2zjs package, designed as a filter for CUPS (Common Unix Printing System) to support HP LaserJet printers using the proprietary Hiperc page description language, such as the HP LaserJet P1005 and P1006 models.

It processes input PostScript or PCL data from stdin, invokes Ghostscript with the foo2hiperc interpreter, and outputs printer-ready bitmaps or Hiperc streams to stdout. This enables printing on these printers under Linux without official HP drivers.

Key features include resolution control (300/600dpi), paper size selection, duplexing, toner density adjustment, and model-specific tweaks. It's invoked automatically by CUPS when configured with the corresponding PPD file, but can be used standalone for testing or batch conversion.

Installation typically involves downloading the foo2zjs source, compiling the foo2hiperc driver, and installing wrappers and PPDs. It's essential for headless servers or custom print workflows supporting monochrome laser printing.

CAVEATS

Requires compiled foo2hiperc binary and Ghostscript. Not all options supported on every model; test PPD setup in CUPS. Firmware upload may require USB access. Deprecated in modern distros favoring OpenPrinting drivers.

INSTALLATION

Download foo2zjs source from foo2zjs.rkkda.com, run make, install foo2hiperc and wrappers. Add PPD to /usr/share/cups/model/.

EXAMPLE USAGE

foo2hiperc-wrapper -z3 -p1 -P -dP1005 - < test.ps > output.hiperc
Configures 600dpi Letter paper for P1005 model.

HISTORY

Developed by Toby Jones as part of the foo2zjs project starting 2004 to reverse-engineer HP's ZJS/Hiperc printer languages. foo2hiperc added ~2006 for P1005 support. Maintained sporadically; integrated into some distro repos until ~2015, now community-driven via GitHub.

SEE ALSO

foo2zjs-wrapper(1), gs(1), lp(1), cupsd(8), foomatic-rip(1)

Copied to clipboard