Linux: Command Line Utility Convert RTF to PDF?

StackOverflowNewbie picture StackOverflowNewbie · Jul 29, 2011 · Viewed 20.1k times · Source

Any recommendations to convert an RTF to a PDF? I need to do this from my LAMP application, so a command line utility like GhostScript would be ideal.

Answer

Anonymous Coward picture Anonymous Coward · Nov 14, 2014

Alternatively, you can use libreoffice for this task:

libreoffice --headless --invisible --norestore --convert-to pdf source-file.rtf