From 1097c39446bdf3ce2e55ccc1825b7dd15bbe50c3 Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Thu, 18 Nov 2021 12:10:33 -0600 Subject: [PATCH] Fix dev/core#2959: some PDFs hard-code format to "a3 landscape", overriding default PDF format --- CRM/Core/Page.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index eea1f96170..17b534e52a 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -213,9 +213,7 @@ class CRM_Core_Page { CRM_Utils_Hook::alterContent($content, 'page', $pageTemplateFile, $this); if ($this->_print == CRM_Core_Smarty::PRINT_PDF) { - CRM_Utils_PDF_Utils::html2pdf($content, "{$this->_name}.pdf", FALSE, - ['paper_size' => 'a3', 'orientation' => 'landscape'] - ); + CRM_Utils_PDF_Utils::html2pdf($content, "{$this->_name}.pdf", FALSE); } elseif ($this->_print == CRM_Core_Smarty::PRINT_JSON) { $this->ajaxResponse['content'] = $content; -- 2.25.1