Search code examples
c#asp.net-mvcpdfdocxdoc

convert word (doc, docx) to pdf in a c# web app


Is there any (easy) way to convert a doc or docx to pdf, server side? Any good/free libraries that can do it?

Thanks in advance

Edit:

I tried with the office interop. But my server does not have word or office running and I don't want to be dependent of it.


Solution

  • I found another way to do what I needed. I used OpenOffice service and combined it with a python command, python script, and an auto generated batch script. did the job perfectly and surprisingly quickly