Aspose RTF support


I am using Aspose.Word trial version and want to convert html files to Rtf. I have gone through sample project and found different APIs. Can you kindly guide me which of them will give me the best output.

Following are some methods I found:


Hi Muzna,

Thanks for your inquiry. Please use following code example to convert HTML document into RTF. Hope this helps you.

Aspose.Words.LoadOptions loadoptions = new Aspose.Words.LoadOptions();
loadoptions.LoadFormat = LoadFormat.Html;
Document doc = new Document(MyDir + "in.html", loadoptions);
doc.Save(MyDir + "output.rtf", SaveFormat.Rtf);

Please refer to the following article:
Loading, Saving and Converting

Moreover, you can load a document of type LoadFormat into Aspose.Words’ DOM and convert it to file formats that are mentioned here:
SaveFormat Enumeration

Please let us know if you have any more queries.