Commit 29c45af0 authored by jcnventura's avatar jcnventura

Fix #283950: clean the output buffer to recover from any TCPDF warning/error

parent 4bc318fc
......@@ -243,6 +243,9 @@ function _print_pdf_tcpdf($print, $html, $filename) {
// reset pointer to the last page
$pdf->lastPage();
// try to recover from any warning/error
ob_clean();
//Close and output PDF document
$output_dest = ($print_pdf_content_disposition == 2) ? 'D' : 'I';
$pdf->Output($filename, $output_dest);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment