I’ve got a problem with the implicit conversion from html-Text in altChunks. If I open and save a document containing html-Text as altChunk that has a font size of 12pt, aspose allways sets it to font size 10 in the saved file.
Other sizes are working well. The test HTML is:
<html> <body> <p><spanstyle=“font-size: 10pt;”>This should be 10pt</span></p> <p><spanstyle=“font-size: 12pt;”>This should be 12pt</span></p> <p><spanstyle=“font-size: 14pt;”>This should be 14pt</span></p> </body> </html>
In the attachment are two files. The original docx-file (withoutAspose.docx) and the converted file (withAspose.docx).
If I open the original file with MS Word the font sizes are correct.
Are there any fixes or workarounds for this issue?
Thanks for your inquiry. Unfortunately, there is no Word document is attached with your post. Could you please attach your input Word document (withoutAspose.docx) and output document (withAspose.docx) here for testing? We will investigate the issue on our side and provide you more information.
Thanks for sharing the documents. We have tested the scenario and have managed to reproduce the following issues at our side. For the sake of correction, we have logged these problems in our issue tracking system as follow:
WORDSNET-13142 : The font size of altChunk contents is changed after re-saving Docx
WORDSNET-13143 : The font name of altChunk contents is changed after re-saving Docx (The font name is changed from 'Times New Roman' to 'Arial (WE)')
You will be notified via this forum thread once these issues are resolved. We apologize for your inconvenience.