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)