Yii2 mPdf Kartik: Set Height and Width Paper
问题 How to set custom height and width on PDF format like this: I want set height: 13.6cm and width: 21.2cm if I export to PDF, paper size is always in A4 format , how to make paper size to be 13.6cm (height) and **21.2cm (width) as in the picture above I use mpdf kartik on yii2 .. this my controller code: $pdf = new Pdf([ 'mode' => Pdf::MODE_UTF8, 'format' => Pdf::FORMAT_A4, 'destination' => Pdf::DEST_BROWSER, 'content' => $content, 'cssFile' => \Yii::getAlias('@webroot') .'/css/pdf/pdf-pfi.css'