foo2qpdl-wrapper(1)

πŸ’– foo2qpdl-wrapper β€” bestie edition πŸ’–

okay so you wanna turn Postscript into a QPDL printer stream? say less. this is foo2qpdl-wrapper(1), from the General Commands Manual section, and she is serving.


✨ NAME ✨

foo2qpdl-wrapper β€” Convert Postscript into a QPDL printer stream πŸ–¨οΈβœ¨


🌸 SYNOPSIS 🌸

foo2qpdl-wrapper [options] [ps-file]

πŸ¦‹ DESCRIPTION πŸ¦‹

So. foo2qpdl-wrapper is a Foomatic compatible printer wrapper for the foo2qpdl printer driver. She reads a Postscript ps-file, or just straight up standard input if you don't hand her one, and converts it all into Samsung/Xerox QPDL printer format so it can drive the Samsung CLP-300, CLX-2160, CLX-3160, CLP-315, CLX-3175, CLP-600, CLP-610, CLP-620, CLP-360, CLP-365, and Xerox Phaser 6110 QPDL printers. no cap, that's the whole list.

She can be used standalone if you're feeling independent, but fr fr she's designed to be called from a printer spooler system that uses the Foomatic printer database. that's her main character era. πŸ‘‘


πŸ’… COMMAND LINE OPTIONS πŸ’…

πŸŽ€ Normal Options

These are the options you use to pick the parameters of a print job β€” the ones usually controlled on a per-job basis, iykyk.

  • -c β€” Print in color (else monochrome). the glow-up switch 🌈
  • -C colormode β€” Color correction mode [0].
    • 1 β€” CRD
    • 10 β€” ICM color profile (using -G *.icm file)
  • -d duplex β€” Duplex code to send to printer [1].
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -m media β€” Media code to send to printer [0].
    • plain β€” 0
    • thick β€” 1
    • thin β€” 2
    • bond β€” 3
    • color β€” 4
    • card β€” 5
    • labels β€” 6
    • envelope β€” 7
    • preprinted β€” 8
    • cotton β€” 9
    • recycled β€” 10
    • transparency β€” 11
    • archive β€” 12
  • -p paper β€” Paper size code to send to printer [0].
    • 0 β€” letter
    • 1 β€” legal
    • 2 β€” A4
    • 3 β€” executive
    • 6 β€” env #10
    • 7 β€” env Monarch
    • 8 β€” env C5
    • 9 β€” env DL
    • 11 β€” B5jis
    • 12 β€” B5iso
    • 16 β€” A5
    • 17 β€” A6
    • 23 β€” env C6
    • 24 β€” folio
    • 25 β€” env 6.75
    • 26 β€” env #9
    • 28 β€” oficio
  • -n copies β€” Number of copies [1]. yes she can run it back multiple times πŸ’…
  • -r xresxyres β€” Set device resolution in pixels/inch [1200x600].
  • -s source β€” Source (Input Slot) code to send to printer [255].
    • 1 β€” auto
    • 2 β€” manual
    • 3 β€” multi
    • 4 β€” tray1
  • -t β€” Draft mode. Every other pixel is white. she's keeping it low-effort but still cute πŸ“
  • -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18 β€” Print in N-up. Requires the psutils package. (yes bestie, that's a LOT of flags, and they're all just different N values, slay)
  • -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 used to customize the operation of foo2qpdl 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 QPDL stream. foo2qpdl-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 β€” Printer model. Model 0 is the default.
    • 0 β€” CLP-300, CLX-2160, CLX-3160
    • 1 β€” CLP-600
    • 2 β€” CLP-310, CLP-315, CLP-610, CLX-3175
    • 3 β€” CLP-620, CLP-360, CLP-365

🌈 Color Tweaking Options

These are the options used to control the quality of color output. 🎨

Color correction is currently a WORK IN PROGRESS. she's still in her development era, be nice to her 😭
  • -a parm=val β€” Color Adjust. parm is b, c, s, cr, mg, yb for brightness, contrast, saturation, cyan-red balance, magenta-green balance, and yellow-blue balance. val is 0 to 100. Multiple options are allowed. The default is "-ab=50 -ac=50 -as=50 -acr=50 -amg=50 -ayb=50". This only works when the -z3 (e.g. CLP-365) model is set!
  • -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 options are used for debugging foo2qpdl and its wrapper. (we're all just out here trying to figure out what's happening fr)

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

foo2qpdl-wrapper testpage.ps > testpage.zm
qpdldecode < testpage.zm
lpr -P raw testpage.zm

Create a color QPDL stream from a Postscript document:

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

see? easy. ate. πŸ’…βœ¨


🫢 FILES 🫢

  • /usr/bin/foo2qpdl-wrapper

πŸ‘‘ SEE ALSO πŸ‘‘

foo2qpdl(1), qpdldecode(1)


🌸 AUTHOR 🌸

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


and that's the whole page bestie πŸ’– this one lives in the General Commands Manual section, straight from the source, and she's been serving the printer girlies since forever. go forth and convert. πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from