Maayong adlaw sa tanan..... Bag o lang ko aning PHP programming niya gusto ko maghimu ug PDF page para sa printing. Kaso naa koy nabanggaan nga problema. Unsaon Nako paghimu ug columns sa output. Murag inane ba.

Lastname Firstname MI Address
content content content content
possible multi lines

Naa koy nakit an na code kaso naa may kuwang:

CODE :
<?php
require('fpdf/fpdf.php');

$pdf = new FPDF();
$pdf->AddFont('Bookman','','Bookos.php');
$pdf->AddPage();
$pdf->SetFont('Bookman','',14);

$x=16;
$y=26;

$width=30;
$height=35;
$leftmargin=16;

$content = "content";
//$content = "This is a very long content, this must goes to the next line. ";
for ($r=0;$r<10;$r++){
for ($c=0;$c<6;$c++){
$pdf->SetY($y); //set pointer back to previous values
$pdf->SetX($x);
$x=$pdf->GetX()+$width;
$y=$pdf->GetY();
$pdf->MultiCell($width,$height,$content,1,'L');
}
$y+=$height;
$x=$leftmargin;
$pdf->SetY($y);
}


$pdf->Output();
?>

Naay duha ka problema ane nga code:
1.) First Page ra ang ok
2.) Kung taas ang imung content dli man cya maghimu ug next line.


Tabang sa tanan....... Salamat kau....