pic

Picture preprocessor for the groff (GNU Troff) document formatting system. See also groff and troff. More information: https://manned.org/pic.

pic path/to/input.pic > path/to/output.roff

pic -T pdf path/to/input.pic | groff -me -T pdf > path/to/output.pdf