foo2hiperc(1)

✨ foo2hiperc β€” the glow-up ✨

okay bestie, so this whole page is foo2hiperc(1) from the General Commands Manual β€” a real one, section 1, a whole command, and she is so useful. sit down, grab a strawberry πŸ“, and let's get into it.

πŸ’– NAME πŸ’–

foo2hiperc β€” the girl who takes Ghostscript pbmraw or bitcmyk format and turns it into a HIPERC printer stream. literally a translator but make it fashion πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

three ways to run her, all iconic, all piping into your hiperc-file:

foo2hiperc [options] <pbmraw-file >hiperc-file
foo2hiperc [options] <bitcmyk-file >hiperc-file
foo2hiperc [options] <pksmraw-file >hiperc-file

🌸 DESCRIPTION 🌸

foo2hiperc converts Ghostscript pbmraw, bitcmyk, or pksmraw output formats into monochrome or color HIPERC streams. and what is she driving with all that? she's feeding the Oki C310dn, C3100, C3200, C3300n, C3400n, C5100n, C5500n, C5600n, and the C5800n HIPERC printers. yes, that many. she's booked and busy πŸ‘‘


⭐ COMMAND LINE OPTIONS ⭐

πŸŽ€ Normal Options

these are the ones you'll be picking out per print job β€” the everyday slay, the fit you wear to every occasion. usually controlled on a per job basis, periodt.

  • -c β€” Force color mode. only reach for this when autodetect doesn't work and you're like excuse me? πŸ™ˆ
  • -d duplex β€” the Duplex code to send to printer [1]. the lineup:
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -g xpixxypix β€” Set page dimensions in pixels [5100x6600].
  • -m media β€” Media code to send to printer [0]. the menu:
    • plain β†’ 0
    • labels β†’ 1
    • transparency β†’ 2
  • -p paper β€” Paper code to send to printer [2]. the whole roster, no gatekeeping:
    • 1 β€” A4
    • 2 β€” letter
    • 3 β€” legal
    • - β€” -
    • 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]. one is a choice, but she supports more.
  • -r xresxyres β€” Set device resolution in pixels/inch [600x600].
  • -s source β€” the Source (InputSlot) code to send to printer [0]:
    • 0 β€” auto select
    • 1 β€” tray1
    • 2 β€” tray2
    • 3 β€” multi
    • 4 β€” manual
  • -t β€” Draft mode. Every other pixel is white. she's giving "we have ink at home" energy πŸ’€
  • -J filename β€” Filename string to send to printer.
  • -U username β€” Username string to send to printer.

🧚 Printer Tweaking Options

these are the ones for customizing how foo2hiperc operates for a particular printer β€” the bespoke tailoring, the alterations, iykyk.

  • -u xoffxyoff β€” Set the offset of the start of the printable region from the upper left corner, in pixels [0x0].
  • -l xoffxyoff β€” Set the offset of the end of the printable region from the lower right corner, in pixels [0x0].
  • -L mask β€” Send logical clipping amounts implied by -u/-l in the HIPERC stream [3]. your choices, choose wisely:
    • 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
  • -A β€” AllIsBlack: convert C=1,M=1,Y=1 to just K=1. Works with bitcmyk input only. (so don't try it elsewhere, she will simply not.)
  • -B β€” BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only. same rule, bestie.
  • -Z compressed β€” Use uncompressed (0) or compressed (1) JBIG data.

πŸ’œ Debugging Options

for when you're debugging foo2hiperc and you need to see the receipts πŸ”

  • -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 πŸ”₯

create a black and white HIPERC stream

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
    -sPAPERSIZE=letter -r600x600 -sDEVICE=pbmraw
    -sOutputFile=- - < testpage.ps
| foo2hiperc -r600x600 -g5100x6600 -p0 >testpage.zm

create a color HIPERC stream

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
    -sPAPERSIZE=letter -g5100x6600 -r600x600 -sDEVICE=bitcmyk
    -sOutputFile=- - < testpage.ps
| foo2hiperc -r600x600 -g5100x6600 -p0 >testpage.zc

🫢 FILES 🫢

  • /usr/bin/foo2hiperc β€” yeah, that's her. that's the whole file list. she's low maintenance πŸ’–

🌈 SEE ALSO 🌈

πŸ‘‘ AUTHOR πŸ‘‘

Rick Richardson <rick.richardson@comcast.com> http://foo2hiperc.rkkda.com/


ok and that's the whole page, no cap. every option, every default, every code, every single one β€” nothing skipped, bestie. πŸŽ€

and yeah, one last thing: this whole thing is foo2hiperc(1) straight out of the General Commands Manual β€” that's the source, that's the section, that's the vibe. now go print something iconic βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from