foo2hbpl1-wrapper(1)
okay so bestie, this is foo2hbpl1-wrapper(1) from the General Commands Manual, and weβre about to make printer-stream conversion make sense π
β¨
π NAME π
foo2hbpl1-wrapper β Convert Postscript into a ZJS printer stream π
β¨ SYNOPSIS β¨
foo2hbpl1-wrapper [options] [ps-file]
π DESCRIPTION π
foo2hbpl1-wrapper is a Foomatic compatible printer wrapper for the foo2hbpl1 printer driver. This script reads a Postscript ps-file or standard input and converts it to Zenographics ZjStream printer format for driving the Dell 1250c, Dell C1660w, Dell C1760w, Epson AcuLaser C1700, and Fuji-Xerox CP105b printers. π¨οΈβ¨
This script can be used in a standalone fashion, but it is intended to be called from a printer spooler system which uses the Foomatic printer database. π«Ά
π COMMAND LINE OPTIONS π
πΈ Normal Options πΈ
These are the options used to select the parameters of a print job that are usually controlled on a per job basis. π
-cβ Print in color π (else monochrome).-Ccolormode β Color correction mode, default[0].10β ICM color profile (using-G *.icmfile) π
-dduplex β Duplex code to send to printer, default[1].1β off2β long edge3β short edge
-mmedia β Media code to send to printer, default[1]. HBPL mapping:plainβ1bondβ2lwcardβ3lwgcardβ4labelsβ5envelopeβ6recycledβ7plain2β8bond2β9lwcard2β10lwgcard2β11recycled2β12
-ppaper β Paper size code to send to printer, default[1]. HBPL mapping:A4β1B5jisβ2letterβ4executiveβ5fanfold german legalβ6folioβ6legalβ7env#10β9envMonarchβ10envC5β11envDLβ12
-ncopies β Number of copies, default[1].-rxresxyres β Set device resolution in pixels/inch, default[1200x600].-ssource β Source (Input Slot) code to send to printer, default[7].1β upper4β manual2β lower7β auto
-tβ Draft mode. Every other pixel is white. π-Tdensity β Print density (1-5). The default is3(medium).-2,-3,-4,-5,-6,-8,-9,-10,-12,-14,-15,-16,-18β Print in N-up. Requires thepsutilspackage.-oorient β Orientation used for N-up.- Portrait β
-op(normal) - Landscape β
-ol(rotated 90 degrees anticlockwise) - Seascape β
-os(rotated 90 degrees clockwise)
- Portrait β
π¦ Printer Tweaking Options π¦
These are the options used to customize the operation of foo2hbpl1 for a particular printer. π οΈ
-uxoffxyoff β Set the offset of the start of the printable region from the upper left corner, in pixels[varies with paper size]. The defaults should work on the 2200DL and 2300DL, and have not been tested on any other printers.-lxoffxyoff β Set the offset of the end of the printable region from the lower right corner, in pixels[varies with paper size]. The defaults should work on the 2200DL and 2300DL, and have not been tested on any other printers.-Lmask β Send the logical clipping values from-u/-lin the ZjStream.foo2hbpl1-wrapperalways runs Ghostscript with the ideal page dimensions, so that the scale of the image is correct, regardless whether or not the printer has unprintable regions. This option is used to move the position of the clipped image back to where it belongs on the page. The default is to send the amount which was clipped by-uand-l, and should be good in most cases.0β don't send any logical clipping amounts1β only send Y clipping amount2β only send X clipping amount3β send both X and Y clipping amounts
-Pβ Do not sendSTART_PLANEcodes on monochrome output. May be needed by some monochrome-only printers, such as the HP LaserJet 1000.-Xpadlen β Add extra zero padding to the end of BID segments. The default is16bytes. Padding 16 bytes of zeroes is needed for older ZjStream printers, such as the Minolta 2200DL and HP LaserJet 1000, and seems harmless to newer ones, such as the Minolta 2300DL. So the default should be good for all cases.
π Color Tweaking Options π
These are the options used to control the quality of color output. Color correction is currently a WORK IN PROGRESS. πβ¨
Color correction is currently a WORK IN PROGRESS β bestie, do not expect final-girl perfection here πβ¨
-ggsopts β Additional options to pass to Ghostscript, such as-gβ-dDITHERPPI=nnnβ, etc. This option may appear more than once.-Gprofile.icm β Convertprofile.icmto a Postscript color rendering dictionary (CRD) usingfoo2zjs-icc2psand adjust the printer colors by using the Postscriptsetcolorrenderingoperator. (WORK IN PROGRESS).-Ggamma-file.ps β Prependgamma-file.psto the Postscript input to perform color correction using thesetcolortransferPostscript operator. For example, the file might contain:
{0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
-Iintent β Select profile intent from the ICM file.0=Perceptual,1=Colorimetric,2=Saturation,3=Absolute. Default is0(perceptual).
π§ Debugging Options π§
These options are used for debugging foo2hbpl1 and its wrapper. π
-Splane β Output just a single color plane from a color print and print it on the black plane. The default is to output all color planes.1β Cyan2β Magenta3β Yellow4β Black
-Dlevel β Set Debug level[0].
π₯ EXAMPLES π₯
Create a monochrome ZjStream from a Postscript document, examine it, and then print it using a RAW print queue:
foo2hbpl1-wrapper testpage.ps > testpage.prn
hbpl1decode < testpage.prn
lpr -P raw testpage.prn
Create a color ZjStream stream from a Postscript document:
foo2hbpl1-wrapper -c testpage.ps > testpage.prn
π FILES π
/usr/bin/foo2hbpl1-wrapperβ thatβs the script, bestie πβ¨
π SEE ALSO π
foo2hbpl1(1), hbpldecode(1) ππ
π AUTHOR π
Rick Richardson <rick.richardson@comcast.net>
Cute sign-off, bestie: this page is foo2hbpl1-wrapper(1) from the General Commands Manual; no separate source/version/date line is printed in this copy, so weβre not inventing one β just sending you off with all the printer-wrapper lore and maximum sparkle π«Άπβ¨
π¦ where this page comes from
- nixos 26.05: foo2zjs 20210116
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms