When converting a specific .docx
file to PDF using Aspose.Words, the process enters an infinite loop and never completes. This hangs the service until it is manually restarted.
This issue occurs consistently and can be reproduced not only in our service but also when using the Aspose Online Word to PDF Converter.
Root Cause (Suspected):
Upon inspecting the document, I found that it contains a character with the following attribute in document.xml
(inside the .docx
file):
w:hint w:val="eastAsia"
It seems the placement of this character is critical. Moving the character in different position, rewriting it by myself or removing w:hint w:val="eastAsia"
from document.xml manually fixes the problem. I’ve included comments inside the Word document to indicate where the problem occurs.
Please find the document with problem attached:
eastasia_hint_infinite_loop_error.docx (18.0 KB)