I am trying to convert a file with Chinese characters to PDF. The source document is a Word doc created on a Mac. The rendering is happening on Linux. The PDF is showing block characters for some of the characters in the document. The three attachments show the source document, and the PDF when converted on the Mac and on the Linux box.
I am guessing that on Linux, the font substitution is not grabbing a font that has the required characters. Is there a way for me to determine what substitution is happening? Any suggestion of a font that can cover the character set? I have installed Google’s Noto fonts but that has not helped.
Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you're converting documents to Pdf. Please refer to the following articles:
Please read the members of FontSettings class. You can specify the font's sources or folders using FontSettings.SetFontsSources and FontSettings.SetFontsFolders methods to achieve your requirements. You may use FontSettings.SetFontSubstitutes method to override substitute (alternative) font names for given original font name.
Please let us know if you have any more queries.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.