Open();
$pdf->SetAutoPageBreak(true, 20);
$pdf->SetMargins(20, 20, 20);
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetStyle("s1","arial","",8,"118,0,3");
$pdf->SetStyle("s2","arial","",6,"0,49,159");
//default text color
$pdf->SetTextColor(118, 0, 3);
$pdf->MultiCellTag(100, 4, "Example 1 - Very Simple Table", 0);
$pdf->Ln(1);
require('example1.inc');
$pdf->Ln(10);
$sTxt = "Example 2 - More detailed Table\n\t- Table Align = Center\n\t- The header has multiple lines\n\t- Colspanning Example\n\t- Rowspanning Example\n\t- Text Alignments\n\t- Properties overwriting";
$pdf->SetX(60);
$pdf->MultiCellTag(100, 2.5, $sTxt, 0);
$pdf->Ln(1);
require('example2.inc');
$pdf->Ln(10);
$sTxt = "Example 3 - Table split end of the page\n\t- This is the table from Example 2 at the end of the page\n\t- Splitting mode = ON, you can see that the cells are splitted";
$pdf->SetXY(60,215);
$pdf->MultiCellTag(100, 2.5, $sTxt, 0);
$pdf->Ln(1);
$bTableSplitMode = true;
require('example2.inc');
$pdf->Ln(10);
$sTxt = "Example 4 - Table split end of the page\n\t- This is the table from Example 2 at the end of the page\n\t- Splitting mode = OFF. In this case the cells are NOT splitted";
$pdf->SetXY(60,215);
$pdf->MultiCellTag(100, 2.5, $sTxt, 0);
$pdf->Ln(1);
$bTableSplitMode = false;
require('example2.inc');
$pdf->Output();
?>