From 4f31930a34006f7a2409c452376d1829d18f7f3c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 19 Sep 2016 07:46:38 +1000 Subject: [PATCH] CRM-19382 Allow for remote images to be used in invoices --- CRM/Contribute/Form/Task/Invoice.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Task/Invoice.php b/CRM/Contribute/Form/Task/Invoice.php index 4193ef46c8..3c16191adf 100644 --- a/CRM/Contribute/Form/Task/Invoice.php +++ b/CRM/Contribute/Form/Task/Invoice.php @@ -643,7 +643,10 @@ 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') { - $doc = new DOMPDF(); + $options = new Options; + $options->set('isRemoteEnabled', TRUE); + + $doc = new DOMPDF($options); $doc->load_html($html); $doc->render(); $html = $doc->output(); -- 2.25.1