C# – Converting docx to pdf using openxml and pdfcreator in c#

cdocxopenxmlpdf-generation

I need to convert docx to pdf file in server. I have seen PDFCreator will do, based on below link(http://sourceforge.net/projects/pdfcreator/).

I need some suggestions on this as listed below:

  1. can i use PDF Creator in server side.
  2. without creating word object, can i convert docx to pdf with openxml by using pdfcreator API.

Please give me reply soon.

Best Answer

You can use docx4j.NET to convert a docx to XSL FO, and from there, to PDF. Or, indeed, to any of the other output formats supported by Apache FOP.

See this sample.

docx4j.NET is an IKVM'd DLL of docx4j, an ASL v2 licensed open source project.

Related Topic