Allow to specify the name of the PDF to download

SVN:trunk[1906]
This commit is contained in:
Denis Flaven
2012-03-20 17:01:11 +00:00
parent b37414df59
commit 1cc2884541

View File

@@ -202,7 +202,7 @@ EOF
$("tbody tr.green_even:odd",table).removeClass('even').removeClass('green_even').addClass('green');
}
});
// Adjust initial size
$('.v-resizable').each( function()
{
@@ -844,7 +844,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');
}
}