Update dompdf code in PDF/Utils to match upgraded dompdf code
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 23 Jul 2016 05:20:54 +0000 (15:20 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 24 Jul 2016 02:14:44 +0000 (12:14 +1000)
CRM/Utils/PDF/Utils.php

index 89752cd75322524800b0858e8adb79d31e228457..b22e3ae1a3913476f6696b151048a891d135997d 100644 (file)
@@ -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);