To convert a Word document to PDF in C#, you can use the Microsoft.Office.Interop.Word library. Here is an example code:
Note that you need to have Microsoft Word installed on your computer to use this library. Also, make sure to include the Microsoft.Office.Interop.Word reference in your project.