diff --git a/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php b/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php index 3237885dca..791ecc8c71 100644 --- a/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php +++ b/application/Espo/Tools/Pdf/Dompdf/DompdfInitializer.php @@ -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 ?