using Word = Microsoft.Office.Interop.Word;
private void SaveRTFToPDF(string RTFFileName, string PDFFileName)
{
object oMissing = System.Reflection.Missing.Value;
Object oTrue = true;
Object oFalse = false;
object ReadOnly = false;
object IsVisible = true;
object RTFFile = RTFFileName;
object PDFFile = PDFFileName;
Word._Application oWord = new Word.Application();
Word._Document oDoc = oWord.Documents.Open(ref RTFFile,
ref oMissing, ref ReadOnly,
ref oMissing, ref oMissing,
ref oMissing, ref oMissing,
ref oMissing, ref oMissing,
ref oMissing, ref oMissing,
ref IsVisible, ref oMissing,
ref oMissing, ref oMissing,
ref oMissing);
object FileFormat = Word.WdSaveFormat.wdFormatPDF;
object LockComments = false;
object AddToRecentFiles = true;
object ReadOnlyRecommended = false;
object EmbedTrueTypeFonts = false;
object SaveNativePictureFormat = true;
object SaveFormsData = true;
object SaveAsAOCELetter = false;
object InsertLineBreaks = false;
object AllowSubstitutions = false;
object LineEnding = Word.WdLineEndingType.wdCRLF;
object AddBiDiMarks = false;
oDoc.SaveAs(ref PDFFile, ref FileFormat, ref LockComments,
ref oMissing, ref AddToRecentFiles, ref oMissing,
ref ReadOnlyRecommended, ref EmbedTrueTypeFonts,
ref SaveNativePictureFormat, ref SaveFormsData,
ref SaveAsAOCELetter, ref oMissing, ref InsertLineBreaks,
ref AllowSubstitutions, ref LineEnding, ref AddBiDiMarks);
oDoc.Close(ref oFalse, ref oMissing, ref oMissing);
oWord.Quit(ref oMissing, ref oMissing, ref oMissing);
}