public function MPDFDocument::output in Forena Reports 7.5
Overrides DocumentTypeBase::output
File
- src/
DocumentFormats/ MPDFDocument.php, line 89 - MPDFDocument.inc PDF document via MPDF Library @author davidmetzler
Class
Namespace
Drupal\forena\DocumentFormatsCode
public function output(&$output) {
$http_headers = array(
'Pragma' => 'no-cache',
'Expires' => '0',
'Cache-Control' => 'no-cache, must-revalidate',
'Cache-Control' => 'private',
'Content-Transfer-Encoding' => 'binary',
'Content-Type' => 'application/pdf',
);
foreach ($http_headers as $name => $value) {
$value = preg_replace('/\\r?\\n(?!\\t| )/', '', $value);
drupal_add_http_header($name, $value);
}
return TRUE;
}