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);
}
}
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);
}
}