foo2hp2600-wrapper(1)
β¨ foo2hp2600-wrapper β¨
okay bestie, gather round, because we're talking about foo2hp2600-wrapper β it's from the General Commands Manual, section 1, and it is literally the little script that turns your Postscript into a ZJS printer stream π
πΈ NAME πΈ
foo2hp2600-wrapper β Convert Postscript into a ZJS printer stream
π¦ SYNOPSIS π¦
foo2hp2600-wrapper [options] [ps-file]
π DESCRIPTION π
So foo2hp2600-wrapper is a Foomatic compatible printer wrapper for the foo2hp printer driver. That's the whole job description. π«Ά
It reads a Postscript ps-file, or just standard input if you don't hand it a file, and converts it all into Zenographics ZjStream printer format so it can drive the Hewlett-Packard 2600n color laser printer β plus any other Zenographics-based printers out there. π
And yes, you can run this script in a standalone fashion, it's not clingy like that. But fr fr, its intended life is being called from a printer spooler system that uses the Foomatic printer database. That's its main character era. β¨
π 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. Per job basis, bestie. Every print job gets to choose. π«
-bbits β Number of bits per plane.1or2. [1].-cβ Print in color (else monochrome). Color girlies rise π¨-dduplex β Duplex code to send to printer [1].1β off2β long edge3β short edge
-mmedia β Media code to send to printer [1].
Here's the media menu for the HPLJ 2600n, no cap:
plainβ1preprintedβ514letterheadβ513transparencyβ2prepunchedβ515labelsβ265bondβ260recycledβ516colorβ512toughβ276envelopeβ267lightβ258heavyβ262cardstockβ261lightglossyβ268glossyβ269heavyglossyβ270coverβ277photoβ278
-ppaper β Paper size code to send to printer [1].1β letter9β A45β legal11β A57β executive13β B5jis20β env #1027β env DL28β env C534β env B537β env Monarch
-ncopies β Number of copies [1].-rxresxyres β Set device resolution in pixels/inch [1200x600].-ssource β Source (Input Slot) code to send to printer [7].1β tray 24β manual/tray 12β tray 37β auto
-tβ Draft mode. Every other pixel is white. π» (ghost pixels, literally)-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 foo2hp for a particular printer. Customization era π οΈ
-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 the2200DLand2300DL, 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 the2200DLand2300DL, and have not been tested on any other printers.-Lmask β Send the logical clipping values from-u/-lin the ZjStream.foo2hp2600-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
-Oparm=val β Alignment of CMYK. parm isc,m,y, ork. val is in rows. Multiple options are allowed. The default is"-Oc=0 -Om=0 -Oy=0 -Ok=0".-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. Padding16bytes 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.-zmodel β Model:0=HP CLJ 1600/2600n;1=HP CLJ CP1215
π Color Tweaking Options
These are the options used to control the quality of color output. Color correction is currently a WORK IN PROGRESS. Yes bestie, WIP, we're all works in progress π«
-ggsopts β Additional options to pass to Ghostscript, such as-gβ-dDITHERPPI=nnnβ, etc. This option may appear more than once.-Gprofile.icm β Convert profile.icm to a Postscript color rendering dictionary (CRD) usingfoo2zjs-icc2psand adjust the printer colors by using the Postscriptsetcolorrenderingoperator. If profile.icm isnone.icm, then prepare for ordering a ICM custom printer profile (i.e. fromwww.ICCFactory.com).-Ggamma-file.ps β Prepend gamma-file.ps to 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 foo2hp and its wrapper. Detective mode π
-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:
foo2hp2600-wrapper testpage.ps > testpage.zm
zjsdecode < testpage.zm
lpr -P raw testpage.zm
Create a color ZjStream stream from a Postscript document:
foo2hp2600-wrapper -c testpage.ps > testpage.zc
π FILES π
/usr/bin/foo2hp2600-wrapper
π SEE ALSO π
π AUTHOR π
Rick Richardson <rick.richardson@comcast.net>
π heads up bestie: this page is foo2hp2600-wrapper(1), straight outta the General Commands Manual. That's the whole vibe check, periodt. Go forth and print something iconic π¨οΈβ¨π
π¦ where this page comes from
- ubuntu noble: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6 Β· GPL-2.0-or-later
- ubuntu questing: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms