foo2hp(1)
β¨ NAME β¨
foo2hp β ok bestie, this is the little icon that takes your Ghostscript pbmraw or bitcmyk format and turns it into a ZJS printer stream. Periodt. π
(this page lives in the General Commands Manual, btw π«Ά)
πΈ SYNOPSIS πΈ
foo2hp [options] <pbmraw-file >zjs-file
foo2hp [options] <bitcmyk-file >zjs-file
foo2hp [options] <cups-file >zjs-file
π DESCRIPTION π
foo2hp converts Ghostscript pbmraw, bitcmyk, or cups output formats into monochrome or color ZJS streams. It's giving "driver for the Hewlett-Packard 2600n color laser printer and other Zenographics-based printers." Lowkey iconic, fr fr. π
π 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. Your everyday queens, basically. π
-bbits β Bits per plane, if autodetect is being shady and doesn't work (1or2). Default is[1].-cβ Force color mode if autodetect doesn't work.-dduplex β Duplex code to send to the printer. Default is[1].1β off2β long edge3β short edge
-gxpixxypix β Set page dimensions in pixels. Default is[10200x6600].-mmedia β Media code to send to printer. Default is[1]. Here's the whole HPLJ 2600n lineup, no cap:plainβ1preprintedβ514letterheadβ513transparencyβ2prepunchedβ515labelsβ265bondβ260recycledβ516colorβ512toughβ276envelopeβ267lightβ258heavyβ262cardstockβ261lightglossyβ268glossyβ269heavyglossyβ270coverβ277photoβ278
-ppaper β Paper code to send to printer. Default is[1]. Choose your fighter:1β letter9β A45β legal11β A57β executive13β B5jis20β env #1027β env DL28β env C534β env B537β env Monarch
-ncopies β Number of copies. Default is[1].-rxresxyres β Set device resolution in pixels/inch. Default is[600x600].-ssource β Source (InputSlot) code to send to printer. Default is[7].1β tray 22β tray 17β auto
-tβ Draft mode. Every other pixel is white. Saving that ink, we love a budget queen. π-Jfilename β Filename string to send to printer.-Uusername β Username string to send to printer.
π¦ Printer Tweaking Options π¦
These are the options used to customize the operation of foo2hp for a particular printer. Glow-up era. β¨
-uxoffxyoff β Set the offset of the start of the printable region from the upper left corner, in pixels. Default is[0x0].-lxoffxyoff β Set the offset of the end of the printable region from the lower right corner, in pixels. Default is[0x0].-Lmask β Send logical clipping amounts implied by-u/-lin the ZjStream. Default is[3].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
-Oc,m,y,k β Alignment of CMYK in rows. The default is0,0,0,0.-Pβ Do not sendSTART_PLANEcodes on monochrome output. May be needed by some black and white only printers, such as the HP LaserJet 1000.-Aβ AllIsBlack: convertC=1,M=1,Y=1to justK=1. Works withbitcmykinput only.-Bβ BlackClears:K=1forces C,M,Y to0. Works withbitcmykinput only.-Xpadlen β Add extra zero padding to the end of BID segments. The default is16bytes.
π₯ Debugging Options π₯
These options are used for debugging foo2hp. Detective mode activated. π
-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. Default is[0].
β EXAMPLES β
Create a black and white ZJS stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -r600x600 -sDEVICE=pbmraw
-sOutputFile=- - < testpage.ps
| foo2hp -r600x600 -g5100x6600 -p1 >testpage.zm
Create a color ZJS stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -g5100x6600 -r600x600 -sDEVICE=bitcmyk
-sOutputFile=- - < testpage.ps
| foo2hp -r600x600 -g5100x6600 -p1 >testpage.zc
π§ FILES π§
/usr/bin/foo2hp
π SEE ALSO π
foo2hp2600-wrapper(1), zjsdecode(1)
π AUTHOR π
Rick Richardson <rick.richardson@comcast.net> http://foo2hp.rkkda.com/
and that's the whole manual bestie, from the General Commands Manual, mwah π go forth and print, you ate that π«Άβ¨
π¦ 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