foo2slx-wrapper(1)
π foo2slx-wrapper β the manual, but make it make sense π
okay bestie, welcome to foo2slx-wrapper(1), from the General Commands Manual section. this is the little script that takes your Postscript and turns it into SLX printer language so your printer actually knows what to do. she's an icon, she's a wrapper, she's literally the middleman of your print job. let's go π«Ά
β¨ NAME β¨
foo2slx-wrapper β Convert Postscript into a SLX printer stream
πΈ SYNOPSIS πΈ
foo2slx-wrapper [options] [ps-file]
π¦ DESCRIPTION π¦
so. foo2slx-wrapper is a Foomatic compatible printer wrapper for the foo2slx printer driver. no cap. this script reads a Postscript ps-file (or just takes it from standard input, she's flexible like that π
) and converts it into Software Imaging K.K. SLX printer format, which is the whole vibe you need to drive the Lexmark C500 network color laser printer and other SLX-based printers.
you can run this script standalone, like, just you and her, but fr fr she's designed to be called from a printer spooler system that uses the Foomatic printer database. that's her natural habitat. π
π COMMAND LINE OPTIONS π
π Normal Options
these are the options for picking the parameters of a print job β the stuff you usually control per job, y'know?
-cβ Print in color (else monochrome). it's giving color. π-mmedia β Media code to send to printer[0]. here's the whole menu:plainβ0transparencyβ1labelsβ2thick1β3envelope1β4thinβ5thick2β6envelope2β7middleβ8specialβ9
-ppaper β Paper size code to send to printer[6]. the lineup:6βletter2βA49βlegal4βB58βexecutive5βB5iso10βenv #1011βenv DL
-ncopies β Number of copies[1]. one is the default, but go off, print 50. π-rxresxyres β Set device resolution in pixels/inch[1200x600].-ssource β Source (Input Slot) code to send to printer[0]. the options are:0βauto1βcassette1
-2-3-4-5-6-8-9-10-12-14-15-16-18β Print in N-up. requires the psutils package, so don't come for me if you don't have it. π-oorient β Orientation used for N-up. here's the tea:Portraitβ-op(normal)Landscapeβ-ol(rotated 90 degrees anticlockwise)Seascapeβ-os(rotated 90 degrees clockwise)
π οΈ Printer Tweaking Options
these are for customizing how foo2slx behaves on a particular printer. very bespoke. very tailored. β¨
-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 the 2200DL and 2300DL, and have not been tested on any other printers. so like, iykyk. π-lxoffxyoff β Set the offset of the end of the printable region from the lower right corner, in pixels[varies with paper size]. same deal: the defaults should work on the 2200DL and 2300DL, and have not been tested on any other printers.-Lmask β Send the logical clipping values from-u/-lin the ZjStream. okay so here's why this matters: foo2slx-wrapper always runs Ghostscript with the ideal page dimensions, so that the scale of the image is correct, regardless of 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. the mask values: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
π Color Tweaking Options
these control the quality of color output. heads up though: color correction is currently a WORK IN PROGRESS. π§ not finished, bestie. we're getting there.
-ggsopts β Additional options to pass to Ghostscript, such as-gβ-dDITHERPPI=nnnβ, etc. this option may appear more than once. stack 'em. π₯-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
these are used for debugging foo2slx and its wrapper. detective mode. π΅οΈββοΈ
-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. your choices:1β Cyan2β Magenta3β Yellow4β Black
-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:
foo2slx-wrapper testpage.ps > testpage.zm
slxdecode < testpage.zm
lpr -P raw testpage.zm
Create a color ZjStream stream from a Postscript document:
foo2slx-wrapper -c testpage.ps > testpage.zc
look at her go. iconic behavior. π
π FILES π
/usr/bin/foo2slx-wrapper
π SEE ALSO π
π AUTHOR π
Rick Richardson <rick.richardson@comcast.net> http://foo2slx.rkkda.com/
and that's the whole page bestie, no crumbs left π this was foo2slx-wrapper(1) from the General Commands Manual β go forth and convert that Postscript, you absolute main character. periodt. πβ¨
π¦ 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