问题
I'm looking for a laravel 4 package that can do both, loading views and supporting arabic (and non-latin) fonts. I've tried domPDF and TCPDF but the first doesn't support Arabic while the second can't load views
回答1:
Try "WKHTMLTOPDF" i use it with ZF2 and have no problems at all. Just google for sure there are packages.
回答2:
Have you tried the package from Barry? (https://github.com/barryvdh/laravel-dompdf) This package has build-in support for views, accessing the storage folder for fonts as well as streaming or downloading the PDF to the user in a
As for the Arabic support. Try the UTF-8 support in DOMPDF. In the example they load (what seems) Chinese characters. I think Arabic wil work as wel. (https://github.com/dompdf/dompdf/wiki/UnicodeHowTo#create-a-compatible-html-document)
来源:https://stackoverflow.com/questions/34265020/laravel-pdf-package-that-can-load-views-and-support-arabic