foo2hiperc-wrapper(1)
π foo2hiperc-wrapper β the manual page, but make it cute π
okay bestie, welcome to foo2hiperc-wrapper(1) from the General Commands Manual β¨ this is the glow-up version of the page and no facts got dropped, promise π€
πΈ NAME πΈ
foo2hiperc-wrapper β turn Postscript into a HIPERC printer stream π¨οΈβ¨
π¦ SYNOPSIS π¦
foo2hiperc-wrapper [options] [ps-file]
π DESCRIPTION π
so foo2hiperc-wrapper is a Foomatic compatible printer wrapper for the foo2hiperc printer driver. it reads a Postscript ps-file (or just takes it straight from standard input, she's flexible like that π
) and converts it into the Oki HIPERC printer format, which is what drives these queens:
- Oki
C310dn C3100C3200C3300nC3400nC5100nC5500nC5600nC5800n
those are the HIPERC printers, periodt π«Ά
and yes, she can run in a standalone fashion, she's independent π but honestly her main character energy is meant to be called from a printer spooler system that uses the Foomatic printer database. iykyk.
β¨ COMMAND LINE OPTIONS β¨
π Normal Options π
these are the ones for picking the parameters of a print job β the stuff you usually control per job, bestie.
-cβ print in color π (otherwise it's monochrome, sad but valid)-Ccolormode β color correction mode[0]. and like, the10option is the ICM color profile (uses a-G *.icmfile) π-dduplex β duplex code to send to the printer[1]:1β off2β long edge3β short edge
-mmedia β media code to send to the printer[0]:plainβ0labelsβ1transparencyβ2
-ppaper β paper size code to send to the printer[2]:1β A42β letter3β legal-β-(yes it's literally just a dash, she contains multitudes π)5β A56β B5jis7β A68β env Monarch9β env DL10β env C511β env #1012β executive13β env #914β legal 13.5"15β A316β tabloid/ledger
-ncopies β number of copies[1]ποΈ-rxresxyres β set device resolution in pixels/inch[600x600]-ssource β source (Input Slot) code to send to the printer[0]:0β auto select1β tray12β tray23β multi4β manual
-tβ Draft mode. every other pixel is white, she's going fast and sloppy πβοΈπ¨-2-3-4-5-6-8-9-10-12-14-15-16-18β print in N-up. requires thepsutilspackage, no package no party π-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 are the ones for customizing how foo2hiperc behaves for a particular printer. bespoke, tailored, iconic π
-uxoffxyoff β set the offset of the start of the printable region from the upper left corner, in pixels[varies with paper size]-lxoffxyoff β set the offset of the end of the printable region from the lower right corner, in pixels[varies with paper size]-Lmask β send the logical clipping values from-u/-lin the HIPERC stream. so here's the tea βfoo2hiperc-wrapperalways 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 it 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 non-A3 sized printers, and1for A3/Tabloid/Ledger sized printers (i.e.C810, etc.). the default is0.-Zcompressed β use uncompressed (0) or compressed (1) JBIG data.
π Color Tweaking Options π
these control the quality of color output. and heads up bestie: color correction is currently a WORK IN PROGRESS π§ not me warning you, just keeping it real.
-ggsopts β additional options to pass to Ghostscript, such as-gβ-dDITHERPPI=nnnβ, etc. this option may appear more than once π―βοΈ-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 for debugging foo2hiperc 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.1β Cyan2β Magenta3β Yellow4β Black
-Dlevel β set Debug level[0].
π« EXAMPLES π«
okay so, create a monochrome HIPERC stream from a Postscript document, examine it, and then print it using nc(1) or netcat(1):
foo2hiperc-wrapper testpage.ps > testpage.hc
hipercdecode < testpage.hc
nc 192.168.1.NNN 9100 < testpage.hc
and now create a color HIPERC stream from a Postscript document π:
foo2hiperc-wrapper -c testpage.ps > testpage.hc
π FILES π
/usr/bin/foo2hiperc-wrapper
π₯ SEE ALSO π₯
π AUTHOR π
- Rick Richardson
<rick.richardson@comcast.net> http://foo2hiperc.rkkda.com/
okay that's the whole page bestie, you ate it, no crumbs π
β¨ this was foo2hiperc-wrapper(1) living in the General Commands Manual β stay iconic, go print something gorgeous π«Άππ
π¦ 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