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

Free Support Forum - aspose.com

Aspose.pdf aspnetcore docker pdf中有中文报错

aspose.pdf版本20.11.0
异常信息:
at Aspose.Pdf.Text.Font…ctor(#=zTOe_Xmu63rVPqeIjsr6QPlc= #=zPntAE$I=)
at #=zXzdHs2c9gwU7I0R1mRvFnubG7kGMtPEJncvM31khGwdidSgEYsqYbWE=.#=z_KTDPjkbIsZS45H6wiDCW4sIRKkJ(String #=zfbsiPPQ=, Font #=zPntAE$I=, Font& #=zfLHPhLfxWPN02IRiQkOt24Q=)

代码示例:
Document document = new Document();
// Add page
Page page = document.Pages.Add();
// Add text to new page
page.Paragraphs.Add(new Aspose.Pdf.Text.TextFragment(“中文”));

            document.Save(Path.Combine("wwwroot", "upload", "123.pdf"));

@monet.wu

请注意,所有必需的字体都应安装在使用API​​的系统中。请尝试在支持中文字符的系统中安装字体,然后重试。如果您仍然遇到任何问题,请告诉我们。