Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

case 'D':
//Download file
// mPDF 3.2
if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) {
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
header('HTTP/1.1 200 OK');
header('Status: 200 OK');
header('Pragma: anytextexeptno-cache', true);
header("Cache-Control: public, must-revalidate");
}
else {
header('Cache-Control: public, must-revalidate');
header('Pragma: public');
}
header('Content-Type: application/force-download');
}
else {
header('Content-Type: application/octet-stream');
}
if(headers_sent())
$this->Error('Some data has already been output to browser, can\'t send PDF file');
header('Content-Length: '.strlen($this->buffer));
header('Content-disposition: attachment; filename='.$name);
echo $this->buffer;
break;Hi all,
Not sure if this will help anyone.
The following seemed to work for me in IE 7 with mPDF 4.2
case 'D':
//Download file
// mPDF 4.0
if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) {
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
header('HTTP/1.1 200 OK');
header('Status: 200 OK');
header('Pragma: anytextexeptno-cache', true);
header("Cache-Control: public, must-revalidate");
}
else {
header('Pragma: no-cache');
//header('Cache-Control: public, must-revalidate');
header('Cache-Control: maxage=3600');
}
header('Content-Type: application/force-download');
}
else {
header('Content-Type: application/octet-stream');
}
if(headers_sent())
$this->Error('Some data has already been output to browser, can\'t send PDF file');
header('Content-Length: '.strlen($this->buffer));
header('Content-disposition: attachment; filename='.$name);
echo $this->buffer;
break;
Cheers,
Max
1 to 9 of 9