From 6ae4d5d7d545baf74b733f92a3bf211196fc2b8e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 19 Sep 2016 07:50:00 +1000 Subject: [PATCH] CRM-19382 Add in Dompdf Options use statement --- CRM/Contribute/Form/Task/Invoice.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Task/Invoice.php b/CRM/Contribute/Form/Task/Invoice.php index 3c16191adf..5d6d09565b 100644 --- a/CRM/Contribute/Form/Task/Invoice.php +++ b/CRM/Contribute/Form/Task/Invoice.php @@ -26,6 +26,8 @@ */ use Dompdf\Dompdf; +use Dompdf\Options; + /** * * @package CRM @@ -643,9 +645,9 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { * Name of file which is in pdf format */ static public function putFile($html, $name = 'Invoice.pdf') { - $options = new Options; + $options = new Options(); $options->set('isRemoteEnabled', TRUE); - + $doc = new DOMPDF($options); $doc->load_html($html); $doc->render(); -- 2.25.1