// clean the output buffer before print PDF in BO
This commit is contained in:
@@ -80,7 +80,11 @@ class PDFCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($render)
|
if ($render)
|
||||||
|
{
|
||||||
|
// clean the output buffer to avoid random bugs with tcpdf
|
||||||
|
ob_end_clean();
|
||||||
return $this->pdf_renderer->render($this->filename, $display);
|
return $this->pdf_renderer->render($this->filename, $display);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTemplateObject($object)
|
public function getTemplateObject($object)
|
||||||
|
|||||||
Reference in New Issue
Block a user