GSLP(1)
π 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 ghostscriptgsdjβ format and print text for DeskJet printer using ghostscriptgsdj500β format and print text for DeskJet 500 BubbleJet using ghostscriptgsljβ 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β180gsbjβbj10eβ180gsdjβdeskjetβ300gsdj500βdjet500β300gsljβ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.AFMfile--last-page <n>β stop printing after page <n>--(heading|footing)-(left|center|right) <string>β set the heading/footing fields; use-Bfirst 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
- alpine 3.22: ghostscript-doc 10.05.1-r0 Β· AGPL-3.0-or-later
- alpine 3.23: ghostscript-doc 10.08.0-r0 Β· AGPL-3.0-or-later
- alpine 3.24: ghostscript-doc 10.08.0-r0 Β· AGPL-3.0-or-later
- arch rolling: ghostscript 10.08.0-1 Β· AGPL-3.0-or-later
- debian trixie: ghostscript 10.05.1~dfsg-1+deb13u1 Β· LicenseRef-public-domain
- debian trixie: ghostscript 10.05.1~dfsg-1+deb13u3 Β· LicenseRef-public-domain
- fedora 43: ghostscript-tools-printing 10.05.1-5.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript-tools-printing 10.05.1-6.fc43
- fedora 43: ghostscript-tools-printing 10.05.1-7.fc43 Β· AGPL-3.0-or-later
- fedora 44: ghostscript-tools-printing 10.06.0-2.fc44 Β· AGPL-3.0-or-later
- fedora 44: ghostscript-tools-printing 10.06.0-3.fc44 Β· AGPL-3.0-or-later
- nixpkgs unstable: ghostscript 10.08.0
- nixpkgs unstable: ghostscript-with-X 10.08.0
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 Β· AGPL-3.0-only
- ubuntu questing: ghostscript 10.05.0dfsg1-0ubuntu4
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1 Β· LicenseRef-public-domain
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.1
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.2 Β· LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2 Β· LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2.1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms