Convert From One Format to Another
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 Module | Supported formats |
---|---|
Wordize Core for .NET | Load/Save MS Word document formats (DOC, DOCX, RTF, FlatOpc, XML, TXT, XLSX) |
Wordize Web for .NET | Load/Save Web formats (HTML, MHTML, MD, CHM) |
Wordize eBook for .NET | Load/Save eBook formats (EPUB, AWZ3, MOBI) |
Wordize OpenOffice for .NET | Load/Save open office documents (ODT, OTT) |
Wordize PDF Load for .NET | Load PDF documents (PDF) |
Wordize Rendering for .NET | Save documents to fixed page formats (PDF, XPS, SVG, PS, Image, PostScript, etc.) |
Select any document conversion module to work with the required formats.
You can find prices for modules on the Purchase page.
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
If you want to convert HTML to PDF, you need the additional modules Wordize Web for .NET and Wordize Rendering for .NET, as well as the basic module Wordize Core for .NET. As mentioned above, without the basic module, the other modules do not work.
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");