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. πŸ’…

  • -b bits β€” Bits per plane, if autodetect is being shady and doesn't work (1 or 2). Default is [1].
  • -c β€” Force color mode if autodetect doesn't work.
  • -d duplex β€” Duplex code to send to the printer. Default is [1].
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -g xpixxypix β€” Set page dimensions in pixels. Default is [10200x6600].
  • -m media β€” Media code to send to printer. Default is [1]. Here's the whole HPLJ 2600n lineup, no cap:
    • plain β€” 1
    • preprinted β€” 514
    • letterhead β€” 513
    • transparency β€” 2
    • prepunched β€” 515
    • labels β€” 265
    • bond β€” 260
    • recycled β€” 516
    • color β€” 512
    • tough β€” 276
    • envelope β€” 267
    • light β€” 258
    • heavy β€” 262
    • cardstock β€” 261
    • lightglossy β€” 268
    • glossy β€” 269
    • heavyglossy β€” 270
    • cover β€” 277
    • photo β€” 278
  • -p paper β€” Paper code to send to printer. Default is [1]. Choose your fighter:
    • 1 β€” letter
    • 9 β€” A4
    • 5 β€” legal
    • 11 β€” A5
    • 7 β€” executive
    • 13 β€” B5jis
    • 20 β€” env #10
    • 27 β€” env DL
    • 28 β€” env C5
    • 34 β€” env B5
    • 37 β€” env Monarch
  • -n copies β€” Number of copies. Default is [1].
  • -r xresxyres β€” Set device resolution in pixels/inch. Default is [600x600].
  • -s source β€” Source (InputSlot) code to send to printer. Default is [7].
    • 1 β€” tray 2
    • 2 β€” tray 1
    • 7 β€” auto
  • -t β€” Draft mode. Every other pixel is white. Saving that ink, we love a budget queen. πŸ“
  • -J filename β€” Filename string to send to printer.
  • -U username β€” 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. ✨

  • -u xoffxyoff β€” Set the offset of the start of the printable region from the upper left corner, in pixels. Default is [0x0].
  • -l xoffxyoff β€” Set the offset of the end of the printable region from the lower right corner, in pixels. Default is [0x0].
  • -L mask β€” Send logical clipping amounts implied by -u/-l in the ZjStream. Default is [3].
    • 0 β€” don't send any logical clipping amounts
    • 1 β€” only send Y clipping amount
    • 2 β€” only send X clipping amount
    • 3 β€” send both X and Y clipping amounts
  • -O c,m,y,k β€” Alignment of CMYK in rows. The default is 0,0,0,0.
  • -P β€” Do not send START_PLANE codes on monochrome output. May be needed by some black and white only printers, such as the HP LaserJet 1000.
  • -A β€” AllIsBlack: convert C=1,M=1,Y=1 to just K=1. Works with bitcmyk input only.
  • -B β€” BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only.
  • -X padlen β€” Add extra zero padding to the end of BID segments. The default is 16 bytes.

πŸ”₯ Debugging Options πŸ”₯

These options are used for debugging foo2hp. Detective mode activated. πŸ”

  • -S plane β€” 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 β€” Cyan
    • 2 β€” Magenta
    • 3 β€” Yellow
    • 4 β€” Black
  • -D level β€” 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