我想使用mpdf库在全页视图图像上创建白色边框。
但无法找到任何解决方案。谁能帮助我。我尝试过:
require_once 'vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf([
'orientation' => 'P',
'mode' => 'utf-8',
'format' => 'A4'
]);
$mpdf->AddPage();
$mpdf->WriteHTML("<html><body style='background-image:url(\"flag.jpg\"); background-image-resize: 5; background-position: top center;border:30px solid'></body></html>");
$mpdf->Output();