Free Support Forum -

Wrong font size and font style (1613)

Hi, I have problem with this word file, after simple open/save, in saved document there is a paragraph with changed font size and paragraph with different font style, you can see it in attached pictures.
document : (6.7 KB)
picture for changed font size : Font_size.png (115.3 KB)
picture with original font style : before.png (52.9 KB)
picture with wrong font style (after save) : after.png (40.6 KB)

String wordDocPath = “Nordic-Walking.doc”;
Document wordDoc = new Document(wordDocPath);“saved.doc”);

Can you please check this out?


Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17223. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.


Regarding WORDSNET-17223, we have completed the analysis of your issue and come to a conclusion that this issue is actually not a bug in Aspose.Words.

The source document is in the HTML format and the differences in the resulting document are caused by differences in HTML import procedures used by Aspose.Words and MS Word. Currently, Aspose.Words tries to comply with HTML standards when loading HTML documents and tries to make resulting documents look closer to what is rendered by HTML browsers. From this point of view, Aspose.Words imports the source document correctly, while MS Word uses wrong font sizes and colors.

In future, we are going to introduce another HTML import mode that will mimic behavior of MS Word. Using this mode, you will get the same resulting document after loading “Nordic-Walking.doc”, as in MS Word.

So, the implementation of this issue has been postponed until we add support of MSO attributes during HTML import. We will keep you informed of further updates.