Convert DOCX to PDF programmatically without Word installed?

Khalid Omar picture Khalid Omar · Jan 15, 2011 · Viewed 45.4k times · Source

I have a web application and I need to convert DOCX files to PDF to generate some reports wtiten in Word 2007. First I used automation and I faced a DCOM problem and finally I discovered that Microsoft doesn't support automation of Word on the server side. Now I'm searching for other free tools as opposed to Word and etc isn't free, iTextSharp doesn't convert DOCX to PDF.

If any one knows of a free tool or .NET classes to make this conversation, please let me know.

Answer

JasonPlutext picture JasonPlutext · Jan 16, 2011

In the absence of a pure .NET solution, you could use docx4j and its dependencies as DLLs via IKVM.