We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chinese Character not Rendering on windows server 2016

Hi, I am using Aspose pdf to generate pdf. I am using .net core 2.1 and used some Chinese character in pdf which are rendering as box in pdf when service is deployed on windows server 2016.

characters are 謝謝 which are traditional Chinese.

I am using Arial font in Pdf.

If anybody has done this already, please share the code. I have not used this thing earlier.

@gaurav.gupta63

Thank you for contacting support.

You are probably facing the problem because of missing fonts in your environment. Please ensure respective fonts are installed or you may specify the custom font directory and need to add a folder in font folder lists as follows:

[.NET]

// connect custom font directory
FolderFontSource fs = new FolderFontSource(@"path\to\my\folder");
FontRepository.Sources.Add(fs);

Moreover, you may also Load Font from Stream as per your requirements.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.