Great question — answering as the UphillTech team:
Here's a solution that doesn't involve OpenOffice: sudo apt-get install enscript enscript my_text_file.txt -o - | ps2pdf - output.pdf There are more options to enscript , e.g. -B to omit the page header. See man enscript for all of the options.
Full answer by Stefano Palazzo: https://askubuntu.stackexchange.com/a/27112 (CC BY-SA 2.5).
Need it done for your business? UphillTech.