Convert DOCX file to PDF file in C# (without using MS Office) - Step by Step

This is a C # example to convert DOCX files into PDF under .Net without using MS Office Automation via a free C# PDF library. Only the .Net platform and nothing else.

C# (238.8 KB)
1.6 Star
8,240 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

    1 Posts | Last post October 12, 2017
  • Is it free?
    4 Posts | Last post January 23, 2017
    • Please correct the post. This library is not free.
    • The trial version is free! You may use it unlimited time... 
    • G. Matveyenko is right - it is disingenuous to suggest that this library is free. It is NOT free if you have to pay to use it.
    • Trial version has limitations and watermarks, so hence is not free since it does NOT perform the operations as expected in this. Very misleading.
  • Header formatting
    1 Posts | Last post June 16, 2016
    • Hi, works well unless I give a try with a .docx containing header formatting. After conversion to pdf my headers are rendered as black horizontal rules. If you wanna try just mark some text in .docx and choose header formatting to have a dark background colour of your headline (tried on MS Office 2016).
  • How to use the trail version of useoffice.dll in WindowsServer 2008 to test the conversion through webapplication in IIS?
    2 Posts | Last post May 11, 2016
    • I am using the trail version of useoffice.dll in the windows 7 to convert .docx to .pdf and i was successful. But when i am trying to test the same in windows server i am not able to generate the file. The application gets struct at the u.convertfile method. Please help me on this.
    • Hi. UseOffice.Net? This code sample uses PDF Metamorphosis.Net.
      Please, if you have a question about UseOffice by SautinSoft -
      Describe your questions and guys from techsupport will help you.
      Have a nice day
  • How about PPT ?
    3 Posts | Last post February 20, 2016
    • It works too with power point archives ?
    • Hi, Andre. Sure, it will work PPT/PPTX/DOC/DOCX/XLS/XLSX and other MS Office formats.
      Please look on a code sample for PPT/PPTX to PDF.
      Thanks and have a nice day
    • Sorry, Andre. If you want to convert PPT/PPTX to PDF than we can offer you another solution which can work with PPT/PPTX/DOC/DOCX/XLS/XLSX and other MS Office formats. But you need to use Office Automation.
      This code sample can convert DOCX/RTF to PDF only.