@sharma.vikash.mca
It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-21656) as ‘Not a Bug’.
Please resave your input DOC into DOCX format using MS Word. Then you can check following elements directly in styles.xml
part of OOXML package:
- The
Document.Styles.DefaultFont
property corresponds to this element.
<w:rPrDefault>
<w:rPr>
<w:rFonts w:ascii="Times New Roman" w:eastAsia="Times New Roman" w:hAnsi="Times New Roman" w:cs="Times New Roman" />
<w:lang w:val="en-US" w:eastAsia="en-US" w:bidi="ar-SA" />
</w:rPr>
</w:rPrDefault>
- The
Document.Styles[StyleIdentifier.Normal]
corresponds to this element.
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
<w:name w:val="Normal" />
<w:qFormat />
<w:rPr>
<w:lang w:val="fr-FR" w:eastAsia="fr-FR" />
</w:rPr>
</w:style>
As the DocumentBuilder
returns current font formatting properties considering all styles which will be inherited by the current Run, then the properties of Normal
style will be taken into resulted LanguageId
.