I am looking for a light solution in linux, to literally convert a
*.txt file into
- lightweight. I know renaming
*.odtand then use
libreofficeis a pathway, but it will load the heavy
- I know
pr|groff -Tpdfis a solution, yet it does not work literally: it throws away my line-breaks, an may accidentally eat some special marks as escaped labels, making potential bugs. But I still hope to use these old tools as much as possible, because they are stable and fast.
enscript -p file.ps file.txt ps2pdf file.ps file.pdf