foo2xqx(1)

✨ NAME ✨

okay so bestie, meet foo2xqx β€” she takes Ghostscript pbmraw and turns it into a XQX printer stream. that's it, that's the whole job, and she does it flawlessly πŸ’…

this page lives in the General Commands Manual, section 1, iykyk.


πŸ¦‹ SYNOPSIS πŸ¦‹

foo2xqx [options] <pbmraw-file >xqx-file

🌸 DESCRIPTION 🌸

foo2xqx converts Ghostscript pbmraw into monochrome XQX streams, and those streams are what you feed to a whole little squad of printers:

  • the HP LaserJet P1005/P1006/P1007/P1008
  • the HP LaserJet P1505
  • the HP LaserJet P2014
  • the HP LaserJet M1005 MFP
  • the HP LaserJet M1120 MFP
  • the HP LaserJet Pro M1132s MFP
  • the HP LaserJet Pro M1212nf MFP
  • and other XQX-based printers 🫢

πŸ‘‘ COMMAND LINE OPTIONS πŸ‘‘

πŸ’– Normal Options πŸ’–

these are the options you use to pick the parameters of a print job β€” the stuff that's usually decided per job. main character settings, fr fr.

  • -d duplex β€” the duplex code you 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 β€” the media code you send to the printer. default is [1]. (this one's the M1005 table, bestie)
    • standard β€” 1
    • transparency β€” 2
    • envelope β€” 257
    • letterhead β€” 259
    • thick β€” 261
    • postcard β€” 262
    • labels β€” 263
  • -p paper β€” the paper code you send to the printer. default is [1]. πŸ—’οΈ
    • 1 β€” letter
    • 9 β€” A4
    • 5 β€” legal
    • 11 β€” A5
    • 7 β€” executive
    • 13 β€” B5
    • 20 β€” env #10
    • 27 β€” env DL
    • 28 β€” env C5
    • 34 β€” env B5
    • 37 β€” env Monarch
    • 257 β€” 16k 197x273
    • 263 β€” 16k 184x260
    • 264 β€” 16k 195x270
  • -n copies β€” number of copies. default is [1]. yes you can just ask for more, iconic.
  • -r xresxyres β€” set device resolution in pixels/inch. default is [1200x600]. ✨
  • -s source β€” source (InputSlot) code to send to the printer. default is [7].
    • 1 β€” upper
    • 4 β€” manual
    • 2 β€” lower
    • 7 β€” auto
  • -t β€” Draft mode. every other pixel is white. lowkey feral but it saves ink πŸ–¨οΈ
  • -T density β€” print density, 1-5. the default is 3 (medium).
  • -J filename β€” filename string to send to the printer.
  • -U username β€” username string to send to the printer.

πŸŽ€ Printer Tweaking Options πŸŽ€

these are the options used to customize how foo2xqx operates for a particular printer. your printer, your rules.

  • -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
  • -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.

πŸ”₯ Debugging Options πŸ”₯

these ones are for debugging foo2xqx. 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 XQX stream:

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
    -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw
    -sOutputFile=- - < testpage.ps
| foo2xqx -r1200x600 -g10200x6600 -p1 >testpage.zm

πŸ“ FILES πŸ“

  • /usr/bin/foo2xqx

πŸ’œ SEE ALSO πŸ’œ


⭐ AUTHOR ⭐


and that's the whole page, bestie πŸ’– shoutout to the General Commands Manual for hosting foo2xqx(1) β€” same title top and bottom, no notes. go print something cute πŸŽ€πŸ¦‹βœ¨
πŸ“¦ where this page comes from