diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index e4abb883c..eab881840 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -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'); } }