grolj4
Groff HP LaserJet 4 printer driver
TLDR
Generate HP LaserJet output
$ groff -Tlj4 [file.roff] | lpr -P[printer]
Direct grolj4 usage$ grolj4 [file] > output.lj4
Specify copies$ grolj4 -c [3] [file]
SYNOPSIS
grolj4 [options] [file]
DESCRIPTION
grolj4 is a groff output driver for HP LaserJet 4-series and compatible printers. It produces PCL 5 output and supports duplex printing, various paper sizes, and orientations.Normally grolj4 is invoked indirectly by groff -Tlj4, not run directly; it reads groff's intermediate output format and translates it into PCL5 printer commands.
PARAMETERS
FILE
Groff intermediate output.-c N
Number of copies.-d DUPLEX
Duplex mode (1=long, 2=short).-F DIR
Font directory.-l
Landscape orientation.-p SIZE
Paper size.-w WIDTH
Line thickness in thousandths of an em (default 40).-v, --version
Show version information and exit.--help
Display help information.
INSTALL
sudo apt install groff
sudo dnf install groff
sudo pacman -S groff
sudo apk add groff
sudo zypper install groff
brew install groff
nix profile install nixpkgs#groff
CAVEATS
Part of groff package. Specific to HP PCL5 compatible printers. Default paper format is "letter" if none is specified; default duplex mode is long-side binding. Some features require printer support.
HISTORY
grolj4 was developed as part of GNU groff to support HP LaserJet series printers.
