Prevent timeouts during the (lengthy) PDF conversion...

SVN:trunk[4293]
This commit is contained in:
Denis Flaven
2016-07-06 09:43:20 +00:00
parent 18f15ba9cc
commit e553c0bbe1

View File

@@ -174,6 +174,9 @@ EOF
{
$sData = parent::GetFooter();
// We need a lot of time for the PDF conversion
set_time_limit(60*10); // 10 minutes max ???
require_once(APPROOT.'application/pdfpage.class.inc.php');
$oPage = new PDFPage(Dict::Format('Core:BulkExportOf_Class', MetaModel::GetName($this->oSearch->GetClass())), $this->aStatusInfo['page_size'], $this->aStatusInfo['page_orientation']);
$oPDF = $oPage->get_tcpdf();