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
  • C3100
  • C3200
  • C3300n
  • C3400n
  • C5100n
  • C5500n
  • C5600n
  • C5800n

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)
  • -C colormode β€” color correction mode [0]. and like, the 10 option is the ICM color profile (uses a -G *.icm file) 🌈
  • -d duplex β€” duplex code to send to the printer [1]:
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -m media β€” media code to send to the printer [0]:
    • plain β€” 0
    • labels β€” 1
    • transparency β€” 2
  • -p paper β€” paper size code to send to the printer [2]:
    • 1 β€” A4
    • 2 β€” letter
    • 3 β€” legal
    • - β€” - (yes it's literally just a dash, she contains multitudes 😭)
    • 5 β€” A5
    • 6 β€” B5jis
    • 7 β€” A6
    • 8 β€” env Monarch
    • 9 β€” env DL
    • 10 β€” env C5
    • 11 β€” env #10
    • 12 β€” executive
    • 13 β€” env #9
    • 14 β€” legal 13.5"
    • 15 β€” A3
    • 16 β€” tabloid/ledger
  • -n copies β€” number of copies [1] πŸ—‚οΈ
  • -r xresxyres β€” set device resolution in pixels/inch [600x600]
  • -s source β€” source (Input Slot) code to send to the printer [0]:
    • 0 β€” auto select
    • 1 β€” tray1
    • 2 β€” tray2
    • 3 β€” multi
    • 4 β€” 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 the psutils package, no package no party πŸŽ‰
  • -o orient β€” 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 πŸ‘‘

  • -u xoffxyoff β€” set the offset of the start of the printable region from the upper left corner, in pixels [varies with paper size]
  • -l xoffxyoff β€” set the offset of the end of the printable region from the lower right corner, in pixels [varies with paper size]
  • -L mask β€” send the logical clipping values from -u/-l in the HIPERC stream. so here's the tea β˜• foo2hiperc-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 -u and -l, and it should be good in most cases 🫢
    • 0 β€” don't send any logical clipping amounts
    • 1 β€” only send Y clipping amount
    • 2 β€” only send X clipping amount
    • 3 β€” send both X and Y clipping amounts
  • -z model β€” Model is 0 for non-A3 sized printers, and 1 for A3/Tabloid/Ledger sized printers (i.e. C810, etc.). the default is 0.
  • -Z compressed β€” 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.

  • -g gsopts β€” additional options to pass to Ghostscript, such as -gβ€œ-dDITHERPPI=nnn”, etc. this option may appear more than once πŸ‘―β™€οΈ
  • -G profile.icm β€” convert profile.icm to a Postscript color rendering dictionary (CRD) using foo2zjs-icc2ps and adjust the printer colors by using the Postscript setcolorrendering operator. (WORK IN PROGRESS). πŸ”§
  • -G gamma-file.ps β€” prepend gamma-file.ps to the Postscript input to perform color correction using the setcolortransfer Postscript operator. for example, the file might contain:
{0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
  • -I intent β€” select profile intent from the ICM file. 0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute. default is 0 (perceptual).

πŸ› Debugging Options πŸ›

these are for debugging foo2hiperc and its wrapper. detective mode πŸ”

  • -S plane β€” 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 β€” Cyan
    • 2 β€” Magenta
    • 3 β€” Yellow
    • 4 β€” Black
  • -D level β€” 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 πŸ’œ


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