}
function Error($msg)
{
// Fatal error
throw new Exception('FPDF error: '.$msg);
}
function Close()
{
// Terminate document
{
// It contains only a UTF-8 BOM and/or whitespace, let's clean it
ob_clean();
}
else
$this->Error("Some data has already been output, can't send PDF file");
}
}
protected function _getpagesize($size)
{
$name = 'doc.pdf';
switch(strtoupper($dest))
{
case 'I':
// Send to standard output
$this->_checkoutput();
if(PHP_SAPI!='cli')
{
// We send to a browser
header('Content-Type: application/pdf');
header('Content-Disposition: inline; '.$this->_httpencode('filename',$name,$isUTF8));
fixHTML($pdf, stripslashes($row['nor_clause']));
$pdf->SetY($pdf->GetY()+2.5*$ydelta);
$y = $pdf->GetY()+4;
}
}
$pdf->Output();
mysqli_close($link);
exit();
?>
Exception
|
---|
Exception: FPDF error: Some data has already been output, can't send PDF file at /home/510533.cloudwaysapps.com/swmcnanrfd/public_html/mb/fpdf/fpdf.php:271 at FPDF->Error() (/home/510533.cloudwaysapps.com/swmcnanrfd/public_html/mb/fpdf/fpdf.php:1060) at FPDF->_checkoutput() (/home/510533.cloudwaysapps.com/swmcnanrfd/public_html/mb/fpdf/fpdf.php:999) at FPDF->Output() (/home/510533.cloudwaysapps.com/swmcnanrfd/public_html/mb/safety/checklistpdf.php:148) |