// clean the output buffer before print PDF in BO

This commit is contained in:
Rémi Gaillard
2013-01-15 10:20:37 +01:00
parent 8e43f1e38f
commit 433a446a35
+4
View File
@@ -80,7 +80,11 @@ class PDFCore
}
if ($render)
{
// clean the output buffer to avoid random bugs with tcpdf
ob_end_clean();
return $this->pdf_renderer->render($this->filename, $display);
}
}
public function getTemplateObject($object)