开发者

Is there an easy to use PHP PDF library with unicode support?

I tried dompdf. It's a lot ea开发者_开发问答sier to use than other libraries I've tried but it doesn't have unicode support. Or rather, it has unicode support but requires another library called PDFLib ($1k version).

So I am just wondering if anybody has ever stumbled upon or used any PHP pdf library which is both easy to use and has unicode support.


I think fpdf supports that.


You can use TCPDF:
http://www.tcpdf.org/examples/example_008.pdf
http://www.tcpdf.org/examples/example_018.pdf

or you can use html2pdf - it's using tcpdf at its core but it's made to particularly convert html to pdf (css..): Html2pdf
http://demo.html2pdf.fr/examples/pdf/utf8.pdf

and last but not least: mpdf http://www.mpdf1.com/mpdf/index.php

maight be fastest and make smallest pdf in size ( then other two ). also has font_autodetect to detect and use unicode fonts.


Yes, fpdf supports it. I have used it to generate documents in various Indian languages.


The 0.6.0 release of DOMPDF will fully support Unicode. This version is currently in beta, but it's worth a try.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜