Free Support Forum - aspose.com

Converting docx to html: document with tabs looks differently visually in html

Hi Aspose,

When I’m converting docx to html with SaveFormat.HTML, it looks differently visually.
One can expect that tab leading would be of such length, so “1” would be aligned at the end of the text below.
Is this expectation valid?
Or is it simply a matter of fixed position of tab stop in .doc file, so when convertion to HTML occurs, the position of 1 is converted one-to-one, regardless of page size and next text line.

Test file: test.zip (10.5 KB)
Actual Output: output.zip (641 Bytes)
Expected output: expected.zip (701 Bytes)

Source Code:

Document doc = new Document(@“c:\test.docx”);
doc.Save(@“c:\output.html”, SaveFormat.Html);

Thanks,

@nataliakravchenia

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

We have noticed that the font name of text is “Times New Roman” in input document. However, it is “Lucida Console” in output HTML. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17415. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17415) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.