The old pdf test system doesn't work anymore, defaulting to production method
[civicrm-core.git] / CRM / Utils / PDF / Utils.php
index e134e6bd727828f11de3e0264c203199649e171c..9353ea2ba397b9f6f7e45912fdcea8261973778b 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);
 
     }
   }
@@ -338,9 +336,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);
 
     }
   }