主页 > 创业  > 

netcorelibreofficeword转pdf中文乱码

netcorelibreofficeword转pdf中文乱码

一、效果

解决:

cd /usr/share/fonts/ mkdir zhFont cd zhFont #windows系统C:\Windows\Fonts 中复制/usr/share/fonts/zhFont

sudo apt update sudo apt install xfonts-utils mkfontscale mkfontdir #刷新字体缓存 fc-cache -fv #查看已安装的字体列表 fc-list :lang=zh

cd /etc/fonts/conf.d/ nano 10-fangsong-alias.conf ###################################################### <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- FangSong 别名配置 --> <alias> <family>仿宋</family> <prefer> <family>FangSong</family> </prefer> </alias> <!-- 为数字和英文设置默认字体 --> <match target="pattern"> <test qual="any" name="family"> <string>FangSong</string> </test> <edit name="family" mode="prepend"> <string>Times New Roman</string> </edit> </match> </fontconfig> ###################################################### fc-match 仿宋

 再次执行:

dotnet officedemo.dll

 

标签:

netcorelibreofficeword转pdf中文乱码由讯客互联创业栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“netcorelibreofficeword转pdf中文乱码