We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words Stylesheet not applied for HTML to RTF conversion


I have converted PDF file to HTML using Aspose.PDF (PDF to HTML) Converter. Now I am trying to convert that HTML file to RTF using Aspose.Words but stylesheet (generated through Aspose.PDF) is not applied in the converted RTF file.

Code snippet:

Aspose.Words.LoadOptions loadoptions = new Aspose.Words.LoadOptions();
string dataDir = @“E:\Converters\Aspose.Words\HTMLtoRTF”;
Document doc = new Document(dataDir + @"\jumpstar_business_mergedDocument.htm", loadoptions);
doc.Save(dataDir + @"\jumpstar_business_mergedDocument.rtf", SaveFormat.Rtf);

I have attached zip folder containing HTML and converted RTF File. Please help me to apply styling on RTF file.


HTMLtoRTFConversion.zip (358.7 KB)


Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does.If you convert the HTML to RTF using MS Word, you will get the same output.

Best Regards,
Tahir Manzoor

So stylesheets will not be applied while converting from html to rtf?


We have logged this problem in our issue tracking system as WORDSNET-15638. Our product team will investigate the issue and we inform you via this forum thread once there is any update available on it.

We apologize for your inconvenience.