Use the following command line: Ted –printToFile RTFDocFileName PostScriptDocFileName to produce PS file.
Use ghostscript to convert PS to PDF
ps2pdf
You might be able to string them together via pipe, but I have not had to do so, so you would need to research it yourself. I have been using Ted since last December to convert RTF to PostScritp quite successfully until last week Microsoft introduced a couple of new control words. I then had to “fix” RTF by removing new control codes and now everything is back to normal.