Allow to specify the name of the PDF to download

SVN:1.2[1905]
This commit is contained in:
Denis Flaven
2012-03-20 16:55:20 +00:00
parent b6c1347f27
commit 4ed85c23de

View File

@@ -849,7 +849,12 @@ EOF
$oMPDF->SetDocTemplate ($this->GetOutputOption('pdf', 'template_path'), 1);
}
$oMPDF->WriteHTML($sHtml);
$oMPDF->Output();
$sOutputName = $this->s_title.'.pdf';
if ($this->GetOutputOption('pdf', 'output_name'))
{
$sOutputName = $this->GetOutputOption('pdf', 'output_name');
}
$oMPDF->Output($sOutputName, 'I');
}
}