What is a simple way to convert a Unicode text file to PDF on the command line on macOS?
One can open a text file in e.g. TextEdit and print it as a PDF. Is there a command line equivalent?
macospdftext;unicode
What is a simple way to convert a Unicode text file to PDF on the command line on macOS?
One can open a text file in e.g. TextEdit and print it as a PDF. Is there a command line equivalent?
Best Answer
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:
To specify font: