Convert to WordProcessing
GroupDocs.Conversion can convert any source document to the following WordProcessing formats: Doc, Docm, Docx, Dot, Dotx, Rtf, Odt, Ott, Mobi, Txt. When just instantiate the WordProcessingConvertOptions class without specifying the target format explicitly, Docx will be used as a default format.
Conversion to WordProcessing format could be triggered by following below steps:
- Create new instance of Converter class and pass source document path as a constructor parameter
- Instantiate WordProcessingConvertOptions class.
- Call convert method of Converter class instance and pass filename for the converted document and the instance of WordProcessingConvertOptions from the previous step
The following code show how to convert any document to WordProcessing document.
Converter converter = new Converter("sample.pdf");
WordProcessingConvertOptions options = new WordProcessingConvertOptions();
converter.convert("converted.docx", options);