MultiCell in PDF

MultiCell in PDF


Posted in : PHP Posted on : January 15, 2011 at 6:59 PM Comments : [ 0 ]

This section contains the detail about the MultiCell in PDF.

MultiCell in PDF

In this tutorial you will learn how to create MultiCell in PDF in a PHP web application. The code of  "multicell.php" given below :

<?php
require('fpdf16/fpdf.php');

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Times','I',16);
$pdf->MultiCell( 0, 10,'MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell 
MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell 
MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell MultiCell
MultiCell MultiCell', 1);

$pdf->Output();
?>

In this tutorial "$pdf->MultiCell( 0, 10,'MultiCell,...................', 1)" - set multicell content  with width 0 (width 100 %) and height 10 (per cell) .

Output ::

When run "multicell.php" display output as :

Download Source Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics