title: a light solution to convert text to pdf in Linux
body: <p>I am looking for a light solution in linux, to <em>literally</em> convert a <code>*.txt</code> file into <code>pdf</code> format. I hope the solution satisfies:</p>
  
  <ol>
  <li>lightweight. I know renaming <code>*.txt</code> to <code>*.odt</code> and then use <code>libreoffice</code> is a pathway, but it will load the heavy <code>libreoffice</code>.</li>
  <li>I know <code>pr|groff -Tpdf</code> is 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.</li>
  </ol>
  
  <p>Many thanks!</p>