fix dompdf custom page size

This commit is contained in:
Yuri Kuznetsov
2023-04-26 11:57:44 +03:00
parent 98d457dae6
commit c7c6cfe27f
@@ -52,7 +52,7 @@ class DompdfInitializer
$pdf = new Dompdf($options);
$size = $template->getPageFormat() === Template::PAGE_FORMAT_CUSTOM ?
[$template->getPageWidth(), $template->getPageHeight()] :
[0.0, 0.0, $template->getPageWidth(), $template->getPageHeight()] :
$template->getPageFormat();
$orientation = $template->getPageOrientation() === Template::PAGE_ORIENTATION_PORTRAIT ?