GJOTS2LPR(1)

πŸ’– NAME πŸ’–

gjots2lpr β€” export gjots2 or other txt files to PDF or PS πŸ¦‹


✨ SYNOPSIS ✨

gjots2lpr [ -124fhmptv ] [ filename ... ]

πŸŽ€ DESCRIPTION πŸŽ€

Okay so bestie, here's the whole vibe: gjots2lpr prints a text file for you β€” and like, it tries to do it the fancy way, using postscript or PDF plus whatever pre-viewers and printer dialogs it can find lying around. It goes looking for utilities on your system and just uses whatever it can actually find. Resourceful queen behavior honestly. πŸ‘‘

And if you don't hand it a filename? No worries, it just prints from STDIN. Periodt.

Here are the flags, no gatekeeping:

  • -1 β€” 1 page per sheet
  • -2 β€” 2 page per sheet
  • -4 β€” 4 page per sheet
  • -f FORMATTER β€” use FORMATTER, which is one of a2ps, enscript or mpage
  • -m MEDIA β€” paper size (the default is A4)
  • -p β€” convert to PDF rather than PS
  • -t β€” stick to ASCII text, do not convert to postscript
  • -v β€” verbose operation (it tells you everything, main character energy ✨)

🌈 ENVIRONMENT PARAMETERS 🌈

These environment parameters are recognised, and they come with default values, so you're never left on read:

  • GJOTS_LPR β€” "xpp", "gtklp", "kprinter" or "lpr"
  • GJOTS_TXT2PS β€” "a2ps --medium=A4 --margin=1 --header --center-title='' -2 --output=-", "enscript --borders --output=- --media=A4 -2 --header='%D %T||Page $% of $='" or "mpage -bA4 -X'' -f -2"
  • GJOTS_PS2PDF β€” ps2pdf
  • GJOTS_PSVIEWER β€” "evince", "kghostview", "kpdf", "ggv" or "gv"
  • GJOTS_PDFVIEWER β€” "evince", "acroread", "kpdf" or "xpdf -z page"
  • GJOTS_PRETTY β€” "pr -o 1 -T" or "cat"
  • GJOTS_TXTVIEWER β€” "Xdialog --ok-label Print --textbox - 80 120" or "xmessage -buttons Cancel:1,Print:0 -file -"

and that's the whole page, bestie πŸ’…βœ¨

This one's gjots2lpr 2.3.15, dated September 2011 β€” yeah, she's been iconic for a minute, we love a legacy queen πŸ‘‘πŸŒΈ no cap, go print something cute 🫢

πŸ“¦ where this page comes from