Closed RGinguls closed 5 years ago
This in web.php config file under 'compenets'
'pdf' => [ 'class' => Pdf::classname(), 'mode' => Pdf::MODE_UTF8, 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_STRING, 'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css', 'options' =>[ 'autoScriptToLang' => true, 'autoLangToFont' => true, 'useAdobeCJK' => true, ] ]
didnt work, had to
$pdf = Yii::$app->pdf; $mpdf = $pdf->api; $mpdf->autoScriptToLang = true; $mpdf->autoLangToFont = true; $mpdf->useAdobeCJK = true;
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.
This in web.php config file under 'compenets'
didnt work, had to