GSLP(1)

πŸ“¦
version 10.08.0 Β· 5 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to gslp(1) β€” the Ghostscript manual page, and it's literally a whole little family of text-printing icons:

  • gslp β€” format and print text using ghostscript πŸ‘‘
  • gsbj β€” format and print text for BubbleJet printer using ghostscript
  • gsdj β€” format and print text for DeskJet printer using ghostscript
  • gsdj500 β€” format and print text for DeskJet 500 BubbleJet using ghostscript
  • gslj β€” format and print text for LaserJet printer using ghostscript

five siblings, one vibe, all of them just trying to get your plain text onto paper πŸ’…


✨ SYNOPSIS ✨

gslp -12BclqRr -b<header> -f<font> -F<hfont> -L<lines> -p<outfile> -T<n>
--add-to-space <units> --add-to-width <units> --columns <n> --detect
--first-page <n> --kern <file.afm> --last-page <n>
--(heading|footing)-(left|center|right) <string>
--margin-(top|bottom|left|right) <inches> --no-eject-(file|formfeed)
--spacing <n> [gs options] [files]
gsbj [options] [files]
gsdj [options] [files]
gsdj500 [options] [files]
gslj [options] [files]

like yes, that's a lot of flags. no, you don't need all of them. but she ate πŸ’…


🌸 DESCRIPTION 🌸

So this utility gives you functionality that's approximately equivalent to the Unix enscript(1) program. Key word: approximately. She's not a clone, she's her own main character ✨

She prints plain text files using a single font. She currently handles tabs and formfeeds, but not backspaces β€” backspace is not invited to the party πŸ™ˆ. She will line-wrap when you're using fixed-pitch fonts. And she'll also do kerning and width adjustment, because she's extra and we love that for her.

The default device (-sDEVICE=) and resolution (-r) are as follows:

  • gslp β€” epson β€” 180
  • gsbj β€” bj10e β€” 180
  • gsdj β€” deskjet β€” 300
  • gsdj500 β€” djet500 β€” 300
  • gslj β€” laserjet β€” 300

And by default, the current date is formatted as the center header. iconic behavior, honestly πŸŽ€


πŸ¦‹ OPTIONS πŸ¦‹

Standard switches implemented 🫢

-12BclqRr -b<header> -f<font> -F<hfont> -L<lines> -p<outfile>

Sun switches implemented β˜€οΈ

  • -T<n> β€” set tab width

Switches ignored πŸ’€

-GghKkmow -# -C -d -J -n -P -S -s -t -v

yeah. they're just… there. ignored. not their moment 😭

Switches added πŸ”₯

  • --add-to-space <units> β€” add the given number of 1/72" units to the width of each space (may be negative)
  • --add-to-width <units> β€” add the given number of 1/72" units to the width of each character (may be negative)
  • --columns <n> β€” print in <n> columns
  • --detect β€” treat the file as PostScript if it starts with %!
  • --first-page <n> β€” start printing at page <n>
  • --kern <file.afm> β€” kern using information from the given .AFM file
  • --last-page <n> β€” stop printing after page <n>
  • --(heading|footing)-(left|center|right) <string> β€” set the heading/footing fields; use -B first to clear
  • --margin-(top|bottom|left|right) <inches> β€” set a margin
  • --no-eject-(file|formfeed) β€” end-of-file/FF only starts a new column, not a new sheet
  • --spacing <n> β€” use double (n=2), triple (n=3), etc. spacing
✨ bonus tea: the string %# in a heading or footing is replaced with the page #. cute little self-insert, iykyk πŸ’–

🌈 SEE ALSO 🌈

go read that one too, bestie, she's the blueprint 🫢


⭐ VERSION ⭐

This document was last revised for Ghostscript version 10.04.0.


πŸ‘‘ AUTHOR πŸ‘‘

Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson. thank you george, you ate 🫢


and that's the whole page, bestie β€” this manual page came to you from Ghostscript version 10.04.0, last revised 18 Sept 2024 πŸ’œ now go print something, no cap βœ¨πŸ¦‹

πŸ“¦ where this page comes from