foo2oak-wrapper(1)
β¨ foo2oak-wrapper β the manual page, but make it a group chat π
okay so bestie, gather round, because today we're talking about foo2oak-wrapper, a little script from the General Commands Manual section that lives in your terminal and does something genuinely iconic: it turns Postscript into an OAKT printer stream. no cap. π¦
πΈ NAME πΈ
foo2oak-wrapper β Convert Postscript into an OAKT printer stream. that's it, that's the whole job, and she does it beautifully π
β SYNOPSIS β
foo2oak-wrapper [options] [ps-file]
π DESCRIPTION π
so foo2oak-wrapper is a Foomatic compatible printer wrapper for the foo2oak printer driver. she reads a Postscript ps-file β or just standard input, she's not picky, she's flexible like that β and converts it into Oak Technology OAKT printer format so it can actually drive the HP Color LaserJet 1500 laser printer, the Kyocera KM-1636/KM-2035 copiers, and honestly any other OAKT-based printers that wanna join the party. π«Ά
and like, yes, you can use this script in a standalone fashion, she's independent, she has main character energy. but her true calling? being called from a printer spooler system that uses the Foomatic printer database. iykyk. π₯
π COMMAND LINE OPTIONS π
π Normal Options π
these are the options you use to pick the parameters of a print job β the stuff you usually control per job, one print at a time, no commitment. π
-bbits β Number of bits per plane (1 or 2) [1].-cβ Print in color (else monochrome). slay π-dduplex β Duplex code to send to printer [1].1β off2β long edge3β short edge
-mmedia β Media code to send to printer [1]. the codes differ depending on which column you're living in, so here's the whole vibe check:- Media / HP CLJ 1500 (
-z0) / KM-1635 (-z1) autoselectβ0/0plainβ1/1preprintedβ2/2letterheadβ3/3transparencyβ4/4prepunchedβ5/5labelsβ6/6bondβ7/7recycledβ8/8colorβ9/9cardstockβ10/10envelopeβ11/11lightβ13/natoughβ14/navellumβna/15roughβna/16thickβna/19highqualβna/20
- Media / HP CLJ 1500 (
-ppaper β Paper size code to send to printer [1]. the full menu, no skips:1letter3ledger5legal6statement7executive8A39A411A512B413B5jis14folio19env920env1027envDL28envC530envC437envMonarch257A6258B6259B5iso260env6
-ncopies β Number of copies [1]. (yes bestie,1is the default for basically everything, she's consistent π)-rxresxyres β Set device resolution in pixels/inch [600x600].-ssource β Source (Input Slot) code to send to printer [7].1tray12tray24manual7auto
- **
-2-3-4-5-6-8-9-10-12-14-15-16-18β Print in N-up. Requires thepsutilspackage. (so many little pages, it's giving scrapbook π) -oorient β Orientation used for N-up.- Portrait β
-op(normal) - Landscape β
-ol(rotated 90 degrees anticlockwise) - Seascape β
-os(rotated 90 degrees clockwise)
- Portrait β
π§ Printer Tweaking Options π§
these ones are for customizing how foo2oak operates for a particular printer. it's personal, it's intimate, it's a whole relationship. π
-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.-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.-Lmask β Send the logical clipping values from-u/-lin the OAKT stream.foo2oak-wrapperalways 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-uand-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
-zmodel β Model is0for the HP Color LaserJet 1500, and1for the Kyocera KM-1635/KM-2035 copiers. The default is0.
π Color Tweaking Options π
these control the quality of color output. and likeβ¦ Color correction is currently a WORK IN PROGRESS. not me warning you twice, but fr fr, it's a work in progress. π
-ggsopts β Additional options to pass to Ghostscript, such as-gβ-dDITHERPPI=nnnβ, etc. This option may appear more than once. (go off, stack them π)-Gprofile.icm β Convert profile.icm to a Postscript color rendering dictionary (CRD) usingfoo2zjs-icc2psand adjust the printer colors by using the Postscriptsetcolorrenderingoperator. (WORK IN PROGRESS).-Ggamma-file.ps β Prepend gamma-file.ps to the Postscript input to perform color correction using thesetcolortransferPostscript operator. For example, the file might contain:
{0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
-Iintent β Select profile intent from the ICM file.0=Perceptual,1=Colorimetric,2=Saturation,3=Absolute. Default is0(perceptual).
π₯ Debugging Options π₯
for debugging foo2oak and its wrapper. 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 [0].
π EXAMPLES π
Create a monochrome OAKT stream from a Postscript document, examine it, and then print it using a RAW print queue:
foo2oak-wrapper testpage.ps > testpage.oak
oakdecode < testpage.oak
lpr -P raw testpage.oak
Create a color OAKT stream from a Postscript document:
foo2oak-wrapper -c testpage.ps > testpage.oak
π FILES π
/usr/bin/foo2oak-wrapper
π¦ SEE ALSO π¦
foo2oak(1),oak(1)
π AUTHOR π
- Rick Richardson
<rick.richardson@comcast.net> http://foo2oak.rkkda.com/
okay that's the whole page bestie, you ate that π«Ά and just so you know where this came from: it's a General Commands Manual page for foo2oak-wrapper(1) β the same manual, top and bottom, like a little matching set π
β brought to you by Rick Richardson, with the project living at http://foo2oak.rkkda.com/. go forth and print, you absolute icon βππ
π¦ 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