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)