gpt4 book ai didi

html - NetSuite 高级 PDF 外语

转载 作者:行者123 更新时间:2023-11-28 14:23:33 28 4
gpt4 key购买 nike

我需要在高级 PDF 上显示数据,其中字段包含英文和中文字符。英文显示正常,但中文不出现。有哪些选项可以让汉字也出现?

最佳答案

NetSuite 在后台使用名为 BFO 的库来呈现 PDF。 User Guide从第 30 页开始详细介绍如何使用内置字体以及嵌入您自己的字体。

As well as the standard 5 fonts, users with the appropriate language version of Acrobat can access up to 7 further fonts to display Chinese, Japanese and Korean text. The names for these fonts are “stsong” (STSong-Light, simplified Chinese), “msung” (MSungLight, traditional Chinese), “mhei” (MHei-Medium, traditional Chinese), “heiseimin” (HeiseiMin-W3, Japanese), “heiseikakugo” (HeiseiKakuGo-W5, Japanese), “hygothic” (HYGoThic-Medium, Korean) and “hysmyeongjo” (HYSMyeongJo-Medium, Korean)

另请查看内置的 NetSuite 模板,因为它们会根据区域设置自动嵌入一些字体。如果你只是删除 <#if>围绕中文编写的代码可能会奏效。

<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>

关于html - NetSuite 高级 PDF 外语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54950597/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com