LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

grops

Groff PostScript output driver

TLDR

Convert groff to PostScript
$ groff -Tps [file.roff] > output.ps
copy
Direct grops usage
$ grops [file] > output.ps
copy
Specify paper size
$ grops -p [a4] [file] > output.ps
copy
Landscape mode
$ grops -l [file] > output.ps
copy

SYNOPSIS

grops [options] [file]

DESCRIPTION

grops is a groff output driver that produces PostScript. It is the primary driver for high-quality printed output from groff, generating Level 2 PostScript with support for color, graphics, and embedded fonts.Output can be printed directly or converted to PDF with tools like ps2pdf.

PARAMETERS

FILE

Groff intermediate output.
-c N
Number of copies.
-F DIR
Font directory.
-l
Landscape orientation.
-p SIZE
Paper size (letter, a4, legal).
-P PROLOGUE
Use prologue file.
-b
Broken flag for compatibility.
--help
Display help information.

INSTALL

sudo apt install groff-base
copy
sudo dnf install groff-base
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

Part of groff package. PostScript output can be large. Requires PostScript viewer or printer.

HISTORY

grops was developed as part of GNU groff by James Clark as the primary output driver for printed documents.

SEE ALSO

groff(1), ps2pdf(1)

Copied to clipboard
Kai