Switch to non deprecated functions
authorMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 8 Nov 2023 17:06:08 +0000 (17:06 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 8 Nov 2023 17:06:45 +0000 (17:06 +0000)
CRM/Utils/PDF/Utils.php

index 400988f31ea0ac43fa8fd73d17c6740013286c87..decc1b39eabda89fa1fe5132c2ba646926adbb65 100644 (file)
@@ -121,8 +121,8 @@ class CRM_Utils_PDF_Utils {
   public static function _html2pdf_dompdf($paper_size, $orientation, $html, $output, $fileName) {
     $options = self::getDompdfOptions();
     $dompdf = new DOMPDF($options);
-    $dompdf->set_paper($paper_size, $orientation);
-    $dompdf->load_html($html);
+    $dompdf->setPaper($paper_size, $orientation);
+    $dompdf->loadHtml($html);
     $dompdf->render();
 
     if ($output) {