foo2xqx-wrapper(1)
π foo2xqx-wrapper(1) π
okay bestie, welcome to the General Commands Manual β¨ this is the page for foo2xqx-wrapper, and yes it's a whole vibe. grab a strawberry π and let's go.
πΈ NAME πΈ
foo2xqx-wrapper β turns Postscript into a XQX printer stream. that's it, that's the job. π
β¨ SYNOPSIS β¨
foo2xqx-wrapper [options] [ps-file]
π¦ DESCRIPTION π¦
so foo2xqx-wrapper is a Foomatic compatible printer wrapper for the foo2xqx printer driver. it reads a Postscript ps-file β or just standard input if you're feeling mysterious β and converts it into XQX printer format so it can actually drive these 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, iykyk π
ngl you can run this script standalone, but the intended main character energy is being called from a printer spooler system that uses the Foomatic printer database. it's giving "designed to be part of a system." periodt. π
π COMMAND LINE OPTIONS π
π Normal Options π
these are the options that pick the parameters of a print job β the stuff you usually control per job, bestie.
-dduplex β Duplex code to send to printer [1].1β off2β long edge3β short edge
-mmedia β Media code to send to printer [1].
| Media | M1005 |
|---|---|
| standard | 1 |
| transparency | 2 |
| envelope | 257 |
| letterhead | 259 |
| thick | 261 |
| postcard | 262 |
| labels | 263 |
okay so this was a table in the original and tables are not the vibe here, but the numbers are sacred:standard1,transparency2,envelope257,letterhead259,thick261,postcard262,labels263. and the M1005 column applies. slay.
-ppaper β Paper size code to send to printer [1]. the whole menu, lowkey iconic:1β letter5β legal7β executive9β A411β A513β B520β env #1027β env DL28β env C534β env B537β env Monarch257β 16k 197x273263β 16k 184x260263β 16k 195x270
not me pointing out that 263 shows up twice in the original list. that's literally what it says, so that's literally what you get. π«Ά
-ncopies β Number of copies [1].-rxresxyres β Set device resolution in pixels/inch [1200x600].-ssource β Source (Input Slot) code to send to printer [7].1β upper2β lower4β manual7β auto
-tβ Draft mode. Every other pixel is white. yes, literally every other pixel. wild, but make it efficient. π-Tdensity β Print density (1-5). The default is3(medium).-2-3-4-5-6-8-9-10-12-14-15-16-18β Print in N-up. Requires thepsutilspackage. that's a whole lot of flags and yes, they're all listed, no skipping. β¨-oorient β Orientation used for N-up.Portraitβ-op(normal)Landscapeβ-ol(rotated 90 degrees anticlockwise)Seascapeβ-os(rotated 90 degrees clockwise)
π§ Printer Tweaking Options π§
these ones are for customizing how foo2xqx behaves on a particular printer. bespoke behavior, we love to see it. π
-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. fr fr, only those two.-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. same energy, opposite corner. π-Lmask β Send the logical clipping values from-u/-lin the ZjStream.
okay so here's the tea: foo2xqx-wrapper always 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 -u and -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
π Debugging Options π
these are for debugging foo2xqx and its wrapper. main character debugging hours. π₯
-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. literally the whole journey, bestie:
foo2xqx-wrapper testpage.ps > testpage.xqx
xqxdecode < testpage.xqx
lpr -P raw testpage.xqx
π FILES π
/usr/bin/foo2xqx-wrapper
π SEE ALSO π
π AUTHOR π
- Rick Richardson
<rick.richardson@comcast.net> http://foo2xqx.rkkda.com/
and that's the page!! π¦ the footer at the bottom just says foo2xqx-wrapper(1) on both sides with General Commands Manual in the middle β no version, no date, no extra lore, so that's the whole sign-off. go forth and print, bestie πβ¨π
π¦ 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