foo2ddst-wrapper(1)

✨ foo2ddst-wrapper β€” the manual, but make it cute ✨

okay bestie, gather round 🫢 this is the manual page for foo2ddst-wrapper, living in the General Commands Manual section. she's a little script with main character energy and she is about to turn your Postscript into printer-speak. let's go πŸ’…


🌸 NAME 🌸

foo2ddst-wrapper β€” Convert Postscript into a DDST printer stream


πŸŽ€ SYNOPSIS πŸŽ€

foo2ddst-wrapper [options] [ps-file]

πŸ¦‹ DESCRIPTION πŸ¦‹

so. foo2ddst-wrapper is a Foomatic compatible printer wrapper for the foo2ddst printer driver. this script reads a Postscript ps-file, or just straight up standard input if you don't feel like naming a file, and converts it into DDST printer format so it can drive the Ricoh Aficio SP 112, the Ricoh Aficio SP 201, and other DDST-based printers. iconic honestly πŸ‘‘

you can run this script standalone, no cap, it works. but the intended vibe is that it gets called from a printer spooler system that uses the Foomatic printer database. iykyk.


⭐ COMMAND LINE OPTIONS ⭐

πŸ’– Normal Options πŸ’–

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

  • -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 [1].
    • plain&recycled β†’ 1
    • paper β†’ 2
    • thin β†’ 3
    • thick β†’ 4
    • recycled β†’ 5
  • -p paper β€” Paper size code to send to printer [1].
    • 1 β†’ letter
    • 2 β†’ legal
    • 3 β†’ executive
    • 4 β†’ invoice(5.5x8.5)
    • 5 β†’ A4
    • 6 β†’ A5
    • 7 β†’ A6
    • 8 β†’ B5 JIS
    • 10 β†’ 16k 197x273
    • 11 β†’ 16k 184x260
    • 12 β†’ 16k 195x270
  • -n copies β€” Number of copies [1]. go off, print it twelve times πŸŽ€
  • -r xresxyres β€” Set device resolution in pixels/inch [600x600].
  • -s source β€” Source (Input Slot) code to send to printer [7].
    • 1 β†’ upper
    • 2 β†’ manual
  • -t β€” Draft mode. Every other pixel is white. not me making half your pixels disappear πŸ’€ it's giving "saving ink".
  • -T density β€” Print density (1-5). The default is 3 (medium).
  • -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18 β€” Print in N-up. Requires the psutils package. (yes, that's a whole little army of flags, and yes, they're all listed exactly like that 🫢)
  • -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 ones are for customizing how foo2ddst behaves on a particular printer. printer-specific glow-up energy ✨

  • -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]. defaults should work on the 2200DL and 2300DL, and have not been tested on any other printers either. same boat, bestie.
  • -L mask β€” Send the logical clipping values from -u/-l in the ZjStream. here's the lore: foo2ddst-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 moves 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 that 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

🧚 Debugging Options 🧚

these options are used for debugging foo2ddst and its wrapper. detective mode πŸ”

  • -D level β€” Set Debug level [0].

πŸ’œ EXAMPLES πŸ’œ

Create a monochrome ZjStream from a Postscript document, examine it, and then print it using a RAW print queue:

foo2ddst-wrapper testpage.ps > testpage.ddst
ddstdecode < testpage.ddst
lpr -P raw testpage.ddst

look at her go. ate that πŸ’…


πŸ“ FILES πŸ“

  • /usr/bin/foo2ddst-wrapper

🌟 SEE ALSO 🌟


πŸ‘‘ AUTHOR πŸ‘‘

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


and that's the whole page, bestie 🫢 courtesy of the General Commands Manual β€” that's the footer energy, that's the source-and-manual-name sign-off, no date to give you so don't come for me. go print something cute. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from