Convert From One Format to Another

Use Wordize for .NET conversion feature to convert a document from one format to another using C#. Use various Wordize modules to convert DOCX to HTML, DOCX to PDF, Web formats to Word formats, and so on.

Wordize’s document conversion feature allows developers to easily convert documents from one format to another, ensuring high fidelity and preserving formatting, styles, and content.

With a variety of modules tailored to specific needs, Wordize offers powerful and flexible APIs for working with MS Word documents, web formats, eBooks, PDFs, images, and OpenOffice files.

The following list of modules and formats is currently available:

Conversion ModuleSupported formats
Wordize Core for .NETLoad/Save MS Word document formats (DOC, DOCX, RTF, FlatOpc, XML, TXT, XLSX)
Wordize Web for .NETLoad/Save Web formats (HTML, MHTML, MD, CHM)
Wordize eBook for .NETLoad/Save eBook formats (EPUB, AWZ3, MOBI)
Wordize OpenOffice for .NETLoad/Save open office documents (ODT, OTT)
Wordize PDF Load for .NETLoad PDF documents (PDF)
Wordize Rendering for .NETSave documents to fixed page formats (PDF, XPS, SVG, PS, Image, PostScript, etc.)

How to Work With Conversion Modules

There is a basic Wordize Core for .NET module that allows users to load and save documents in Microsoft Word format. Without purchasing this basic module, none of the other modules work.

If you want to convert to a wider range of formats, you need additional conversion modules:

  • If you want to convert from DOC to DOCX, you only need the basic module Wordize Core for .NET
  • If you need to convert DOCX to HTML, then in addition to Wordize Core for .NET, you will need the module Wordize Web for .NET
  • If you need to convert DOCX to HTML and EPUB, you need the modules Wordize Core for .NET, Wordize Web for .NET, Wordize eBook for .NET
  • And so on

What is Document Conversion?

Conversion is the process of loading a document and then saving it in the target format. You can load a document from a stream or file and also save it to a stream or file.

Wordize simplifies the process of converting your documents. You don’t need to load and save the document separately. You simply use one of the Convert methods with various overloads to perform the conversion in one action:


method Convert(string, string)
string doc = MyDir + "Document.doc"; Converter.Convert(doc, "ConvertedDocument.1.docx");

method Convert(string, string, SaveFormat)
string doc = "Document.doc"; Converter.Convert(doc, "ConvertedDocument.2.html", SaveFormat.Html);

method Convert(Stream, Stream, SaveFormat)
using var streamIn = File.OpenRead("Document.docx"); using var streamOut = File.Create("ConvertedDocument.3.md"); Converter.Convert(streamIn, streamOut, SaveFormat.md);

Convert DOCX to PDF

If you want to convert DOCX to PDF, you will need the Wordize Core for .NET and Wordize Rendering for .NET modules and the corresponding licenses.

The following code example shows how to convert DOCX to PDF using the Convert(string, string) method:

string doc = MyDir + "Document.docx"; Converter.Convert(doc, ArtifactsDir + "ConvertedDocument.pdf");

Convert DOCX to HTML

If you want to convert DOCX to HTML, you will need the Wordize Core for .NET and Wordize Web for .NET modules and the corresponding licenses.

The following code example shows how to convert DOCX to HTML using the Convert(string, string) method:

string doc = MyDir + "Document.docx"; Converter.Convert(doc, ArtifactsDir + "ConvertedDocument.html");