Convert DOCX to HTML FIXED Java - Wrap Mixed Chinese & English Text in Table Cell (92729)

words source code: (4.8 KB)

origin doc:
origin (491.6 KB)

converted problem:
css style.png (99.7 KB)

It would make more pages and miss some style.Please have a check.


We tested the above scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged the following issues in our issue tracking system.

WORDSNET-19762 : Incorrect Text Wrapping of Chinese and English Mixed Text in HTML_FIXED
WORDSNET-19763 : Content Behind Textbox becomes visible and causes overlap in HTML_FIXED

We will further look into the details of these issues and will keep you updated on the status of corrections. We apologize for your inconvenience.


Regarding WORDSNET-19762, we have completed the work on your issue and concluded to close this issue with “Not a Bug” status. Please check below the analysis details:

Kerning is enabled in the source document, but Aspose.Words ignores Kerning by default. As a result, character widths in “Storage Terms” are measured incorrectly.

To make Aspose.Words for Java handle Kerning correctly, please install Aspose.Words.Shaping.HarfBuzz and enable it in the code:

Document doc = new Document(dataDir + "OpenType.Document.docx");
doc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance()); + "OpenType.Document.pdf");

Hope, this helps.