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.
-dduplex β the duplex code you send to the printer. default is[1].1β off2β long edge3β short edge
-gxpixxypix β set page dimensions in pixels. default is[10200x6600]. π-mmedia β the media code you send to the printer. default is[1]. (this one's the M1005 table, bestie)standardβ1transparencyβ2envelopeβ257letterheadβ259thickβ261postcardβ262labelsβ263
-ppaper β the paper code you send to the printer. default is[1]. ποΈ1β letter9β A45β legal11β A57β executive13β B520β env #1027β env DL28β env C534β env B537β env Monarch257β 16k 197x273263β 16k 184x260264β 16k 195x270
-ncopies β number of copies. default is[1]. yes you can just ask for more, iconic.-rxresxyres β set device resolution in pixels/inch. default is[1200x600]. β¨-ssource β source (InputSlot) code to send to the printer. default is[7].1β upper4β manual2β lower7β auto
-tβ Draft mode. every other pixel is white. lowkey feral but it saves ink π¨οΈ-Tdensity β print density,1-5. the default is3(medium).-Jfilename β filename string to send to the printer.-Uusername β 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.
-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
-Aβ AllIsBlack: convertC=1,M=1,Y=1to justK=1. works withbitcmykinput only.-Bβ BlackClears:K=1forcesC,M,Yto0. works withbitcmykinput only.
π₯ Debugging Options π₯
these ones are for debugging foo2xqx. 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 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 β
- Rick Richardson
<rick.richardson@comcast.net> http://foo2xqx.rkkda.com/
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
- 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