From: Seamus Lee Date: Sat, 23 Jul 2016 05:20:54 +0000 (+1000) Subject: Update dompdf code in PDF/Utils to match upgraded dompdf code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0b6fe14bb995c1f893fae1d37bb01bf4c51cdaec;p=civicrm-core.git Update dompdf code in PDF/Utils to match upgraded dompdf code --- diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index 89752cd753..b22e3ae1a3 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -29,6 +29,8 @@ define("DOMPDF_ENABLE_REMOTE", TRUE); define('DOMPDF_ENABLE_AUTOLOAD', FALSE); +use Dompdf\Dompdf; + /** * * @package CRM @@ -198,8 +200,6 @@ class CRM_Utils_PDF_Utils { * @return string */ public static function _html2pdf_dompdf($paper_size, $orientation, $html, $output, $fileName) { - require_once 'vendor/dompdf/dompdf/dompdf_config.inc.php'; - $dompdf = new DOMPDF(); $dompdf->set_paper($paper_size, $orientation); $dompdf->load_html($html);