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>
Thu, 17 Mar 2022 13:43:45 +0000 (09:43 -0400)
CRM/Utils/PDF/Utils.php

index f905faa7a6188d0c7654a6225efec50cd460a6d6..a54d2c42ef1230c2bb2b803b6d05ed0dc540cd99 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);
 
     }
   }