This section contains the detail about the Line break in PDF
Line break in PDF
In this tutorial you will learn how to line break in PDF in a PHP web application . The code of "line-break.php" given below :
<?php require('fpdf16/fpdf.php'); $pdf=new FPDF(); $pdf->AddPage(); $pdf->SetFont('Times','I',16); $pdf->cell(100,10,"This is a cell with width 100 and height 10",1,1); $pdf->Ln(); $pdf->cell(120,10,"After breack line, cell with width 120 and height 10",1,1); $pdf->Ln(); $pdf->cell(150,10,"After breack line, cell with width 150 and height 10",1,1); $pdf->Output(); ?>
The "$pdf->Ln();" use for line break in cell . In this tutorial display three cell and use two "$pdf->Ln(); " line break;
Output :
When run "line-break.php" display output as :
[ 0 ] Comments