From 433a446a35ae5ef74fbf92a500b3a7e072b8a443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 15 Jan 2013 10:20:37 +0100 Subject: [PATCH] // clean the output buffer before print PDF in BO --- classes/pdf/PDF.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/pdf/PDF.php b/classes/pdf/PDF.php index 8da0cb3eb..6c27729f5 100755 --- a/classes/pdf/PDF.php +++ b/classes/pdf/PDF.php @@ -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)