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

Free Support Forum - aspose.com

Incorrect output on converting word document to html

Hi,

test_pdf.pdf (39.2 KB)
createdHtml.png (132.5 KB)

I am trying to convert my word document to html , but it is giving me incorrect output. I have attched sample document (as pdf) and the generated html as png.

My document file contains header , footer and is also list indented.

Please help.

Thanks

@saurabh.arora,

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

Is there any update on this.

@saurabh.arora,

Thanks for your inquiry. We need your input Word document and standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end. Please ZIP and attach these resources here for testing.

Thanks for the reply . Please find my code :slight_smile:

HtmlSaveOptions options = new HtmlSaveOptions();
options.setExportRoundtripInformation(true);
options.setExportHeadersFootersMode(ExportHeadersFootersMode.FIRST_SECTION_HEADER_LAST_SECTION_FOOTER);
doc.save("/home/sauravarora/html.html", options);

Please help as the headers and footers are getting aligned in-correctly upon conversion.

@saurabh.arora,

Thanks for your inquiry. We have already answered your query here in this post. Please follow that thread for further proceedings.