foo2slx(1)

✨ foo2slx β€” the manual, but make it make sense ✨

okay bestie, welcome to foo2slx(1), straight out of the General Commands Manual (that's section 1, for the ones keeping score πŸ’…). sit down, grab a strawberry πŸ“, and let's get you fluent.


🌸 NAME 🌸

foo2slx β€” Convert Ghostscript pbmraw or bitcmyk format into a SLX printer stream


πŸ¦‹ SYNOPSIS πŸ¦‹

foo2slx [options] <pbmraw-file >slx-file

foo2slx [options] <bitcmyk-file >slx-file

foo2slx [options] <pksmraw-file >slx-file

πŸ’– DESCRIPTION πŸ’–

so basically, foo2slx takes Ghostscript's pbmraw, bitcmyk, or pksmraw output formats and turns them into monochrome or color SLX streams. why do you care? because those streams are what you feed to the Lexmark C500 network color laser printer and other SLZ-based printers. it's giving printer whisperer, no cap. πŸ–¨οΈβœ¨

and the SLX stream itself? it's a variant of ZjStream, produced by Software Imaging K.K. iconic lineage, honestly.


πŸ‘‘ COMMAND LINE OPTIONS πŸ‘‘

✨ Normal Options ✨

these are the ones that pick the parameters of a print job β€” the stuff you usually control on a per-job basis, like a little menu of vibes for each page.

  • -c β€” Force color mode if autodetect doesn't work. (autodetect is lowkey doing its best, but sometimes you gotta step in πŸ’…)
  • -g xpixxypix β€” Set page dimensions in pixels [10200x6600].
  • -m media β€” Media code to send to printer [0].

the media menu, in order:

  • plain β†’ 0
  • transparency β†’ 1
  • labels β†’ 2
  • thick1 β†’ 3
  • envelope1 β†’ 4
  • thin β†’ 5
  • thick2 β†’ 6
  • envelope2 β†’ 7
  • middle β†’ 8
  • special β†’ 9
  • -p paper β€” Paper code to send to printer [6].

the paper lineup, pair by pair:

  • 6 β†’ letter
  • 2 β†’ A4
  • 9 β†’ legal
  • 4 β†’ B5
  • 8 β†’ executive
  • 5 β†’ B5iso
  • 10 β†’ env #10
  • 11 β†’ env DL
  • -n copies β€” Number of copies [1]. (yes, one. we're not printing 47 by accident, bestie)
  • -r xresxyres β€” Set device resolution in pixels/inch [1200x600].
  • -s source β€” Source (InputSlot) code to send to printer [0].

the source squad:

  • 0 β†’ auto
  • 1 β†’ cassette1

πŸŽ€ Printer Tweaking Options πŸŽ€

these ones customize how foo2slx operates for a particular printer. fine-tuning hours, fr fr.

  • -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 ZjStream [3].
    • 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.
  • -B β€” BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only.

πŸ™ˆ Debugging Options πŸ™ˆ

these are the ones you use for debugging foo2slx. main character energy for problem solvers.

  • -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 SLX stream:

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
    -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw
    -sOutputFile=- - < testpage.ps
| foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zm

Create a color SLX stream:

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
    -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk
    -sOutputFile=- - < testpage.ps
| foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zc

🧚 FILES 🧚

  • /usr/bin/foo2slx

⭐ SEE ALSO ⭐


πŸ’œ AUTHOR πŸ’œ


ok that's the whole page, bestie, nothing skipped, nothing hidden πŸ’…

and for the little sign-off at the very bottom of the page: this is foo2slx(1) from the General Commands Manual, filed under section 1, brought to you by that same foo2slx(1) title running across the footer. go forth and slay your print jobs πŸ«ΆπŸ¦‹

πŸ“¦ where this page comes from