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)
committerRuben Rodriguez <ruben@trisquel.org>
Mon, 5 Jun 2023 20:53:22 +0000 (16:53 -0400)
CRM/Utils/PDF/Utils.php

index 4b42786ac82bfc9cb77d6f3c19deea2fb066ffad..d1cdf934480433edcfb0c3ab400f521ef11c2057 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);
 
     }
   }
@@ -278,9 +276,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);
 
     }
   }