Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output.
I want to run groff in a Java program. The input comes from a string. In real command line, we …