GSLP(1) Ghostscript GSLP(1)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

This utility provides functionality approximately equivalent to the Unix [**enscript**(1)](/man/os/ghostscript/enscript.1) program. It prints plain text files using a single font. It currently handles tabs and formfeeds, but not backspaces. It will line-wrap when using fixed-pitch fonts. It will also do kerning and width adjustment.

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
```

By default the current date is formatted as the center header.

# [OPTIONS](#OPTIONS)

[Standard switches implemented:](#Standard)

-12BclqRr -b&lt;header&gt; -f&lt;font&gt; -F&lt;hfont&gt; -L&lt;lines&gt; -p&lt;outfile&gt;

[Sun switches implemented:](#Sun)

-T&lt;n&gt; set tab width

[Switches ignored:](#Switches)

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

[Switches added:](#Switches~2)

[--add-to-space &lt;units&gt;](#add-to-space)

add the given number of 1/72" units to the width of each space (may be negative)

[--add-to-width &lt;units&gt;](#add-to-width)

add the given number of 1/72" units to the width of each character (may be negative)

[--columns &lt;n&gt;](#columns)

print in &lt;n&gt; columns

[--detect](#detect)

treat the file as PostScript if it starts with %!

[--first-page &lt;n&gt;](#first-page)

start printing at page &lt;n&gt;

[--kern &lt;file.afm&gt;](#kern)

kern using information from the given .AFM file

[--last-page &lt;n&gt;](#last-page)

stop printing after page &lt;n&gt;

--(heading|footing)-(left|center|right) &lt;string&gt;

set the heading/footing fields; use -B first to clear

[--margin-(top|bottom|left|right) &lt;inches&gt;](#margin-%28top_bottom_left_right%29)

set a margin

[--no-eject-(file|formfeed)](#no-eject-%28file_formfeed%29)

end-of-file/FF only starts a new column, not a new sheet

[--spacing &lt;n&gt;](#spacing)

use double (n=2), triple (n=3), etc. spacing

Also, the string %# in a heading or footing is replaced with the page #.

# [SEE ALSO](#SEE_ALSO)

[**gs**(1)](/man/os/ghostscript/gs.1)

# [VERSION](#VERSION)

This document was last revised for Ghostscript version 10.04.0.

# [AUTHOR](#AUTHOR)

Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson.

18 Sept 2024 10.04.0

---

Document: gsdj(1) from ghostscript 10.08.0-r0 (Chainguard OS)
Source: https://github.com/ArtifexSoftware/ghostpdl
