Could you please also double check if you are using the latest version (11.7.0)? You can dynamically check if you’re referencing the correct DLL by using the following code snippet:
Console.WriteLine("Aspose.Words Version Number: " + assemblyName.Version.ToString());
}
Secondly, yes, Aspose.Words requires TrueType fonts when rendering documents and otherwise it performs fonts substitution during rendering a document. So, if the font is not available when the document is rendered, it will be replaced with an alternative font which can destroy Chinese text. To overcome this problem, you please simply install a Chinese font on the machine, where rendering of the document is performed.
1. After my customer installs fonts in Server2008, Chinese appears normal when he converts txt into xps. However, there is still messy code when he converts txt into xps in Server2008 English version.
2.It is found that
a) when converting txt to xps, some txt will lead to NullReferenceException. Attached is the test code and documentation.
b)when the text is empty ( click the mouse right button——create a new text without typing anything), converting txt to xps will lead to NullReferenceException.
Thanks for your inquiry. I managed to reproduce this exception during loading your text file into Aspose.Words’ DOM on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-7100. Your request has been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.