foo2ddst(1)

πŸ’– foo2ddst(1) β€” the Gen Z field guide πŸ’–

okay bestie, sit down, hydrate, and let me tell you about foo2ddst. it lives in the General Commands Manual section of your system, and it is literally the glow-up machine that turns Ghostscript's pbmraw output into a monochrome DDST stream. no cap.


✨ NAME ✨

foo2ddst β€” Convert Ghostscript pbmraw into a DDST printer stream πŸŽ€


🌸 SYNOPSIS 🌸

foo2ddst [options] <pbmraw-file >ddst-file

that's it. that's the whole vibe. stdin in, stdout out, she's a pipeline girlie 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” foo2ddst converts Ghostscript pbmraw into monochrome DDST streams, and those streams drive the Ricoh Aficio SP 112, the Ricoh Aficio SP 201, and other DDST-based printers. she's niche, she's specific, she knows her audience. iykyk πŸ’…


πŸ’… COMMAND LINE OPTIONS πŸ’…

🌈 Normal Options 🌈

these are the options you use to pick the parameters of a print job β€” the stuff you'd normally tweak per job. main character energy only.

  • -d duplex β€” Duplex code to send to printer [1].
    • 1 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -g xpixxypix β€” Set page dimensions in pixels [5100x6600].
  • -m media β€” Media code to send to printer [1].
    • plain&recycled β€” 1
    • paper β€” 2
    • thin β€” 3
    • thick β€” 4
    • recycled β€” 5
  • -p paper β€” Paper 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
ok yes bestie, there's no 9. we don't ask. we don't question the lore. πŸ™ˆ
  • -n copies β€” Number of copies [1].
  • -r xresxyres β€” Set device resolution in pixels/inch [600x600].
  • -s source β€” Source (InputSlot) code to send to printer [7].
    • 1 β€” tray 1
    • 2 β€” manual
  • -t β€” Draft mode. Every other pixel is white. she's on a budget, she's still cute ✨
  • -T density β€” Print density (1-5). The default is 3 (medium).
  • -J filename β€” Filename string to send to printer.
  • -U username β€” Username string to send to printer.

πŸ¦‹ Printer Tweaking Options πŸ¦‹

these are the options for customizing how foo2ddst operates for one specific printer. tailoring, babes. bespoke.

  • -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. (yes, only. respect the boundaries.)
  • -B β€” BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only. same energy, opposite direction πŸ’€

πŸ”₯ Debugging Options πŸ”₯

these are the options used for debugging foo2ddst. 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 black and white DDST stream:

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

look at her go. pipeline queen. ate and left no crumbs πŸ“


🧚 FILES 🧚

  • /usr/bin/foo2ddst

πŸ’œ SEE ALSO πŸ’œ


🌸 AUTHOR 🌸


and that's the whole page bestie πŸ’– this little legend comes to you straight out of the General Commands Manual, authored with love by Rick Richardson <rick.richardson@comcast.net> at http://foo2ddst.rkkda.com/ β€” and ngl, the footer didn't hand me a version or a date to shout out, so just know she's timeless. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from