I am running a simple example like this :
<?php require('fpdf/fpdf.php');
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
the output which was expected as like a pdf page with a text of Hello World Written in it...but I got no pdf ..there is no error generation neither in the page nor in the console.the page came blank that's not pdf file..So how to fix this..?
您应该添加文件名;
$pdf->Output("myPdfFile.pdf", "F");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.