projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e91585d
)
Update dompdf code in PDF/Utils to match upgraded dompdf code
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 23 Jul 2016 05:20:54 +0000
(15:20 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sun, 24 Jul 2016 02:14:44 +0000
(12:14 +1000)
CRM/Utils/PDF/Utils.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/PDF/Utils.php
b/CRM/Utils/PDF/Utils.php
index 89752cd75322524800b0858e8adb79d31e228457..b22e3ae1a3913476f6696b151048a891d135997d 100644
(file)
--- 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);