Is there a simple way to convert a Unicode text file to PDF on the command line on macOS?
The following has been tested on Mac OS 10.12.1.
To convert a Unicode text file text.txt to a pdf file text.pdf:
textutil -convert html test.txt
cupsfilter test.html > test.pdf
To specify font:
textutil -font 'Menlo Regular' -fontsize 11 -convert html test.txt
cupsfilter test.html > test.pdf