Kartik mpdf utf-8

I Have the following PdfController I have the following action:

public function actionIndex()
    {
        $this->layout = false;

        $vehicle_id = 223077;
        $qr_code_icon = new QrCode($vehicle_id);
        $qr_code_icon->setSize(88);

        $content = $this->renderAjax("_car-details", [
            'vehicle_id' => $vehicle_id,
            'qr_code_icon' => $qr_code_icon
        ]);
        
        Yii::$app->response->format = \yii\web\Response::FORMAT_RAW;
        header('Content-Type: text/html; charset=UTF-8');
        $pdf = new Pdf([
            'mode' => Pdf::MODE_UTF8,
            'format' => Pdf::FORMAT_A4,
            'orientation' => Pdf::ORIENT_PORTRAIT,
            'destination' => Pdf::DEST_BROWSER,
            'content' => $content,
//            'cssFile' => '@shop_frontend/web/css/pdf.css',
//            'cssFile' => '',
            'marginTop' => 33,
            'marginBottom' => 33,
            'marginRight' => 33,
            'marginLeft' => 33,
            'options' => [
                'defaultheaderline' => 0,
                'defaultfooterline' => 0,
            ],
            'methods' => [
                'SetHeader' => [
                    '<h1>ملاحظة: السعر قابل للتغيير</h1>'
                ],
                //'SetFooter' => [$this->renderPartial("_footer")]
            ]
        ]);

        return $pdf->render();
    }

The SetHeader and SetFooter UTF-8 not working and I am stuck trying to figure out what is happening any help is appreciated