kartik-v / yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
http://demos.krajee.com/mpdf
Other
161 stars 150 forks source link

Encoding problem #79

Closed temirfe closed 5 years ago

temirfe commented 6 years ago

I have problem with generating pdf to browser. Strange symbols is being shown instead of pdf, I think it's because of encoding. Similar problem was asked here https://stackoverflow.com/questions/34577469/yii2-pdf-generation-not-working, but in my case neiter MODE_BLANK nor MODE_UTF8 is working. But if I change 'destination' => Pdf::DEST_BROWSER to'destination' => Pdf::DEST_FILE, the file is being created correctly.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.