Code: Select all
Table 1: | image | | first section of data | | second section of data |
| centered text |
Table 2:
| cell 1 data | | cell 2 data | | cell 3 data |
| cell 4 data | | cell 5 data | | cell 5 data |
.......other cells.....
The code is the following
Code: Select all
//Begin Table 1
//the image
$pdf->Image($logo,9,10);
// first section of data
$pdf->setLeftMargin(35);
$pdf->MultiCell(80,10,$addr,"",2,"L",0);
// second section of data
$pdf->setLeftMargin(110);
$pdf->MultiCell(100,16,$text_2,0,"L",0,2,'','',true,0,false);
//End Table1
//title
$heightClient=round($pdf->getLastH());
$itiermarg=$heightClient+13;
$pdf->setY($itiermarg);
$pdf->setLeftMargin(0);
$pdf->Cell(200,20,$title,"",0,"C","0","",0);
//Table 2
$itiermarg=$itiermarg+17;
$pdf->setMargins(31,10,0);
$pdf->setY($itiermarg);
$pdf->Cell(120,0,$servi,"LTRB",0,"C","0","",0);
$pdf->Cell(15,0,$tim,"LTRB",0,"C","0","",0);
$pdf->Cell(20,0,$value,"LTRB",0,"C","0","",0);
//and the following rows that are in a similar manner
Code: Select all
//to better position it
$pdf->setLeftMargin(0);
$pdf->setRightMargin(120);
$pdf->MultiCell((200,20,$title);