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

Free Support Forum - aspose.com

Aspose.Words Html to Rtf styling issues


I have converted HTML file to RTF/Word using Aspose.Words. It seems that the styles are not fully applied in the converted RTF/Word file.

Code Snippet (HTML to Word):

      string dataDir = @"E:\Intelligize\PA3136\POC\Final Test";
      Document doc = new Document(dataDir + "\\" + "input.html");
      doc.Save(dataDir + "\\ConvertedWordFile.doc");


        Aspose.Words.LoadOptions loadoptions = new Aspose.Words.LoadOptions();
        string dataDir = @"E:\Intelligize\PA3136\POC\Final Test";
        Document doc = new Document(dataDir + @"\input.html", loadoptions);
        doc.Save(dataDir + @"\ConvertedRTFFile.rtf", SaveFormat.Rtf);

I have uploaded HTML file and converted RTF/Word files. Please help me to resolve this issue.

ConvertedDocuments.zip (112.8 KB)



Thanks for sharing the resource document. We have tested the scenario and noticed the reported styling issue. We have logged a ticket WORDSNET-15736 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.


Thanks for your patience. Our product team has investigated the issue and we are closing issue as ‘Won’t Fix’. The source document is not a flow-format HTML. Its internal structure is similar to that of HtmlFixed documents (text in absolutely positioned blocks). Conversion of fixed-page (rendered) documents to flow formats is a very complex task that cannot be solved in general case, because fixed-page documents don’t contain structural information that is necessary for flow formats, and this information cannot be reconstructed.