Linux: Command Line Utility Convert RTF to PDF?
Alternatively, you can use libreoffice for this task:
libreoffice --headless --invisible --norestore --convert-to pdf source-file.rtf
sudo apt-get install ted
/usr/share/ted/Ted/rtf2pdf.sh source-file dest-file
or visit this link