Install pdfroff on macOS
What's the recommended way to get the pdfroff
command working on macOS?
It appears groff
v1.19.2 comes still bundled with macOS 10.13, but pdfroff
not anymore. So do I need to reinstall the entire groff
using homebrew. Or is there a better way?
There is also this pdfroff.sh script on opensource.apple.com, which seems to work when executed with sh pdfroff
.
It is recommend to install groff
from Homebrew.
Apple's built-in groff
is pretty outdated (version 1.19.2) and doesn't include pdfroff
.
Homebrew's supplied version on the other hand is up-to-date with recent version available (version 1.22.3).
Install the required packages (GNU troff and Ghostscript) by running:
brew install groff gs