Docx to html

While converting docx to html i am not getting the output, what i can get after saving the docx manually to html.

For example:
class tag is missing.From where we able to know the paragraph style.

For reference you can use any word document.

Rishi raj

Hi Rishi,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

Please see the attached document.
After converted to html it should conatins the styles of the document and other properties as after saving manually.

Hi Rishi,

Thanks for sharing the detail. Please use HtmlSaveOptions.CssStyleSheetType as Embedded or External to achieve your requirement. This property specifies how CSS (Cascading Style Sheet) styles are exported to HTML, MHTML or EPUB. Default value is Inline for HTML/MHTML. See the following code example for your kind reference.

Document doc = new Document(MyDir + "Test.docx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.CssStyleSheetType = CssStyleSheetType.External;
doc.Save(MyDir + " Out.html", options);