The old pdf test system doesn't work anymore, defaulting to production method
authorRuben Rodriguez <ruben@gnu.org>
Tue, 8 Jun 2021 21:15:02 +0000 (23:15 +0200)
committerMichael McMahon <michael@fsf.org>
Wed, 4 May 2022 20:33:00 +0000 (16:33 -0400)
CRM/Utils/PDF/Utils.php

index 5e6d1dc0ff1d808f52547129bdf905b8ad17298b..381485e244c56339a670a5d4adaa2eaa28e98fa2 100644 (file)
@@ -122,9 +122,7 @@ right  = 1.0in]{geometry}
     else {
       header('Content-Type: application/pdf');
       header('Content-Disposition: attachment; filename="' . $fileName . '"');
-      echo $pdf;
-      // quidam: comment previous line and uncomment next one during printing
-      //CRM_Utils_PDF_Utils::enqueuePDF($pdf);
+      CRM_Utils_PDF_Utils::enqueuePDF($pdf);
 
     }
   }
@@ -337,9 +335,7 @@ right  = 1.0in]{geometry}
     else {
       CRM_Utils_System::setHttpHeader('Content-Type', 'application/pdf');
       CRM_Utils_System::setHttpHeader('Content-Disposition', 'attachment; filename="' . $fileName . '"');
-      echo $pdf;
-      // quidam: comment previous line and uncomment next one during printing
-      //CRM_Utils_PDF_Utils::enqueuePDF($pdf);
+      CRM_Utils_PDF_Utils::enqueuePDF($pdf);
 
     }
   }