I am using mpdf for generating the mpdf document but I need it in the aspect ration of 16:9. The height is fine for my document but I need to increase the width of the document.
I tried various answers in Stackoverflow community but none of the answers helped me. Here's my code
$mpdf = new mPDF("en-GB-x","Letter-L","","",30,30,30,30,6,3);
I need to increase the width now
答案 0 :(得分:1)
您可以将文档的大小指定为以毫米为单位的宽度和高度的数组。横向字母高度为190mm时,16:9的宽度计算为336mm。
mPDF 7.x
$mpdf = new \Mpdf\Mpdf(['mode' => 'en-GB-x', 'format' => [336, 190]]);
mPDF 6.x
$mpdf = new mPDF("en-GB-x", [336, 190], "", "",30,30,30,30,6,3);