PHP 使用FPDF 和 chinese.php 显示简体中文的有关问题

WBOY
Release: 2016-06-13 12:55:58
Original
914 people have browsed it

PHP 使用FPDF 和 chinese.php 显示简体中文的问题
按照网上的帖子,在使用ttf2pt1.exe进行转换的时候,输入C:\ttf\ttf2pt1.exe -a -L ugbk.map+a1 simhei.ttf simhei 提示“cannot access map file 'ugbk.map'”
帖子原文如下链接,请各位大大帮小弟看看
http://www.lakeice.com/?action=show&id=6


------解决方案--------------------
现在不需要再用 ttf2pt1.exe 转换字体格式了。转换了也没用。因为 fpdf 并没用提供将字库内嵌的功能
只需使用 AddGBFont 方法添加所需的字体即可,当然是你的系统字库中有的

是否将 adobe readeer 作为 pdf 默认浏览器并不重要
但你需要安装 adobe readeer 可能还需要安装一个中文扩展包(他会提示你的)


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!