如果想用 TXT 轉成 PDF,有以下兩個方法。
Linux solution: https://www.techforgeek.info/texttopdf.html
$ paps example.txt > example.ps
$ ps2pdf example.ps example.pdf
Windows Solution: https://docs.pdfforge.org/pdfcreator/3.3/en/pdfcreator/using-pdfcreator/command-line-parameters/
安裝PDFcreator,設定auto-save profile。
C:\Program Files\PDFCreator\pdfcreator /printfile="c:\tmp\2.txt" /outputfile="c:\tmp\2.pdf" /profile="auto-save"