使用阿拉伯语将html转换为pdf [英] Converting html to pdf with Arabic
本文介绍了使用阿拉伯语将html转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从html用php生成pdf文件,我使用html2pdf,但它不支持阿拉伯语.我需要一些易于使用的东西.
I need to generate a pdf file with php from html, I ve use html2pdf but it doesn't support Arabic. I need something that's easy to use.
在此先感谢
推荐答案
您可以尝试使用 TCPDF ,我过去曾经使用它并完成了工作,它列出的功能之一是:
You could try with TCPDF, I've use it in the past and got the job done, one of its listed features is:
- UTF-8 Unicode和从右至左的语言
所以我想涵盖阿拉伯语.
So I suppose that covers Arabic.
更新:
是的,他们支持它,甚至有一个在线示例:
UPDATE:
Yes they support it, even have an online example:
RTL文档上的波斯语和阿拉伯语: PDF 及其
Persian and Arabic language on RTL document: PDF and its PHP source
这篇关于使用阿拉伯语将html转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文