EXPORT TO PDF IN YII 2

 


Using Kartik Mpdf for Yii2

To avoid errors like this:

mpdf-error.png

Add the following code to your controller function

‘mode’ => Pdf::MODE_ASIAN,
‘filename’ => ‘filename.pdf’,

Source: https://stackoverflow.com/questions/42920886/how-to-export-html-page-into-pdf-using-kartik-mpdf-in-yii2


Post a Comment

0 Comments