html2fpdf 中文支持

上传者: wujingfeng | 上传时间: 2021-08-06 09:34:44 | 文件大小: 97KB | 文件类型: RAR
html2fpdf 或 html2pdf 是在fpdf上开发的一个可以将html页面转换为pdf文件的PHP类。 官方网址 http://sourceforge.net/projects/html2fpdf/ 近日,由于开发项目需要,需要一个能将页面转换为pdf的插件,以供客户端打印使用,从而脱离浏览器兼容性问题。经多番查找,发现了这个 html2fpdf 的PHP类,搜索有关资料以及实际测试,发现官方下载的类文件中并没有加入对中文的支持,因此输出带有中文的网页会出现乱码。 好在官方提供了Chinese支持文件,但苦于不知如何使用,也没有使用说明可以参照,于是乎继续谷歌百度需求方法,找到了别人修改好的加入中文支持的文件包。 在实际使用中发现,html2fpdf 对于较为简单的html页面的生成还是较为正确的,但涉及到复制样式或嵌套表格时,生成的pdf文件就不能接受了,在使用上还有很大局限性。

文件下载

资源详情

[{"title":"( 42 个子文件 97KB ) html2fpdf 中文支持","children":[{"title":"html2fpdf_zh_cn","children":[{"title":"html2fpdf.php <span style='color:#111;'> 131.73KB </span>","children":null,"spread":false},{"title":"htmltoolkit.php <span style='color:#111;'> 10.23KB </span>","children":null,"spread":false},{"title":"fpdf.php <span style='color:#111;'> 71.65KB </span>","children":null,"spread":false},{"title":"font","children":[{"title":"timesbi.php <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"helveticai.php <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"helveticabi.php <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"gb.php <span style='color:#111;'> 927B </span>","children":null,"spread":false},{"title":"gbb.php <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"courier.php <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"timesb.php <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"timesi.php <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"makefont","children":[{"title":"iso-8859-7.map <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"iso-8859-4.map <span style='color:#111;'> 4.48KB </span>","children":null,"spread":false},{"title":"cp1257.map <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"iso-8859-1.map <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"koi8-r.map <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"cp1258.map <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"cp1250.map <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"iso-8859-9.map <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"cp1253.map <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"iso-8859-15.map <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"cp1251.map <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"iso-8859-11.map <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false},{"title":"iso-8859-2.map <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"koi8-u.map <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"makefont.php <span style='color:#111;'> 10.56KB </span>","children":null,"spread":false},{"title":"iso-8859-5.map <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"cp1252.map <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false},{"title":"cp1254.map <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"cp874.map <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"iso-8859-16.map <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"cp1255.map <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"symbol.php <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"zapfdingbats.php <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"helvetica.php <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"helveticab.php <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"times.php <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"chinese","children":[{"title":"ex.php <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"chinese.php <span style='color:#111;'> 11.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"gif.php <span style='color:#111;'> 26.24KB </span>","children":null,"spread":false},{"title":"sample.html <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"test.php <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • cangcuyuhan :
    php的解决的代码
    2017-04-05
  • u011448354 :
    支持一点点中文,,没什么用
    2017-03-06
  • wxf296721605 :
    可惜没支持中文。。转的时候都是乱码
    2016-12-16
  • jiangxinyu50 :
    还行吧,用的一般般,有些不行
    2016-11-14
  • gzy5513536 :
    浪费我的积分,不是前端处理
    2016-10-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明