foo2lava-wrapper(1)

foo2lava-wrapper πŸ’–

okay bestie, gather round, because this is the foo2lava-wrapper manual page (that's section 1 of the General Commands Manual, iykyk) and it is genuinely SO much cooler than it sounds. she converts Postscript into a LAVAFLOW or OPL printer stream and honestly? iconic behavior. πŸ’…


✨ NAME ✨

foo2lava-wrapper β€” convert Postscript into a LAVAFLOW or OPL printer stream πŸ¦‹


✨ SYNOPSIS ✨

foo2lava-wrapper [options] [ps-file]

✨ DESCRIPTION ✨

so. foo2lava-wrapper is a Foomatic-compatible printer wrapper for the foo2lava printer driver. it reads a Postscript ps-file (or standard input, she's flexible like that 🫢) and converts it into Zenographics LAVAFLOW printer format, all so it can drive:

  • the Konica Minolta magicolor 1600W color laser printer
  • the Konica Minolta magicolor 1680MF/1690MF AIO printer
  • the Konica Minolta magicolor 2480/2490 MF AIO printer
  • the Konica Minolta magicolor 2530 DL network color laser printer
  • and honestly a whole bunch of other Zenographics-based LAVAFLOW printers too πŸ‘‘

she can run in a standalone fashion if you want, but fr fr her main character moment is being called from a printer spooler system that uses the Foomatic printer database. πŸ’–


✨ COMMAND LINE OPTIONS ✨

🌸 Normal Options 🌸

these are the options for picking the parameters of a print job β€” the stuff you'd usually control per job, no cap.

  • -c β€” print in color (otherwise it's monochrome, which is lowkey fine too).
  • -C colormode β€” color correction mode, defaults to [0].
    • 1 β€” Photos (using m2300w CRDs)
    • 2 β€” Photos and text (using m2300w CRDs)
    • 3 β€” Graphics and text (using m2300w CRDs)
    • 10 β€” ICM color profile (using -G *.icm file)
  • -d duplex β€” duplex code to send to the printer, defaults to [1].
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -m media β€” media code to send to the printer, defaults to [0]. for the 2530DL:
    • plain β€” 0
    • transparency β€” 4
    • thick stock β€” 20
    • envelope β€” 22
    • letterhead β€” 23
    • postcard β€” 25
    • labels β€” 26
    • recycled β€” 27
  • -p paper β€” paper size code to send to the printer, defaults to [2].
    • 1 β€” executive
    • 2 β€” letter
    • 3 β€” legal
    • 80 β€” env Monarch
    • 81 β€” env #10
    • 91 β€” env C5
    • 835 β€” 4x6" photo
    • 25 β€” A5
    • 26 β€” A4
    • 45 β€” B5jis
    • 65 β€” B5iso
    • 90 β€” env DL
    • 92 β€” env B5
    • 837 β€” 10x15cm photo
  • -n copies β€” number of copies, defaults to [1]. πŸŽ€
  • -r xresxyres β€” set device resolution in pixels/inch, defaults to [1200x600].
  • -s source β€” source (Input Slot) code to send to the printer, defaults to [255].
    • 1 β€” Tray 1
    • 4 β€” Tray 2
    • 255 β€” auto
  • -t β€” Draft mode. every other pixel is white. (saving ink AND serving looks πŸ’…)
  • -2, -3, -4, -5, -6, -8, -9, -10, -12, -14, -15, -16, -18 β€” print in N-up. requires the psutils package, bestie, don't forget it.
  • -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 options for customizing how foo2lava behaves on a particular printer. every printer's got her own vibe check, yk?

  • -u xoffxyoff β€” 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. 😭
  • -l xoffxyoff β€” set the offset of the end of the printable region from the lower right corner, in pixels [varies with paper size]. same deal: defaults should work on the 2200DL and 2300DL, and have not been tested on any other printers.
  • -L mask β€” send the logical clipping values from -u/-l in the LAVAFLOW stream. foo2lava-wrapper always runs Ghostscript with the ideal page dimensions, so that the scale of the image is correct, regardless 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 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. the default is [0].
    • 0 / LAVAFLOW β€” magicolor 2490 MF
    • 0 / LAVAFLOW β€” magicolor 2530 DL
    • 1 / OPL β€” magicolor 2480 MF
    • 2 / LAVAFLOW β€” magicolor 1600W
    • 2 / LAVAFLOW β€” magicolor 1680MF
    • 2 / LAVAFLOW β€” magicolor 1690MF

🌸 Color Tweaking Options 🌸

these control the quality of color output. heads up though: color correction is currently a WORK IN PROGRESS. 🚧

  • -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 foo2lava and her wrapper. detective mode activated πŸ”

  • -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 monochrome LAVAFLOW stream from a Postscript document, examine it, and then print it using a RAW print queue:

foo2lava-wrapper testpage.ps > testpage.zm
lavadecode < testpage.zm
lpr -P raw testpage.zm

create a color LAVAFLOW stream from a Postscript document:

foo2lava-wrapper -c testpage.ps > testpage.zc

✨ FILES ✨

  • /usr/bin/foo2lava-wrapper

✨ SEE ALSO ✨

foo2lava(1), lavadecode(1) opldecode(1)


✨ AUTHOR ✨

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


and that's the whole page bestie!! 🫢 this one's from the General Commands Manual, section 1, foo2lava-wrapper(1), courtesy of Rick Richardson over at http://foo2zjs.rkkda.com/ β€” go say hi, she ate and left no crumbs. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from