Clear the buffer before sending the PDF output
This commit is contained in:
parent
56704d419f
commit
7d41385304
|
|
@ -418,6 +418,12 @@
|
|||
if ($p >= 55) {
|
||||
$pdf->AddPage('L', array($page_width, $page_height));
|
||||
}
|
||||
|
||||
//clear the output buffer
|
||||
if (ob_get_level()) {
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
//output remaining data
|
||||
$data_body_chunk = $data_start.$data_head;
|
||||
foreach ($data_body as $data_body_row) {
|
||||
|
|
@ -450,4 +456,4 @@
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue