Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu May 16, 2019 9:16 pm

I've noticed that you can convert from RTF to HTML and from HTML to DOCX.

Does Spire.doc support conversion directly from RTF to DOCX?

ezG
 
Posts: 1
Joined: Thu May 16, 2019 8:57 pm

Fri May 17, 2019 1:34 am

Hello,

Thanks for your interests in our product.
Our Spire.Doc (at present the latest version is Spire.Doc Pack(hot fix) Version:7.5.1) supports converting RTF to Docx directly, please refer to the following sample code to test your case. If there is any question, just feel free to write back.
Code: Select all
Document document = new Document();
document.LoadFromFile(@"sample.rtf");
document.SaveToFile("result.docx", Spire.Doc.FileFormat.Docx2013);

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc