Clear the buffer before sending the PDF output

This commit is contained in:
FusionPBX 2024-08-29 10:04:18 -06:00 committed by GitHub
parent 56704d419f
commit 7d41385304
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -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 @@
}
?>
?>