SetAutoPageBreak(true, 20);
$pdf->SetTopMargin(30);
$pdf->AddPage();
$columns = 5; //five columns
$pdf->SetStyle("p", "times", "", 12, "130, 0, 30");
$pdf->SetStyle("pb", "times", "B", 11, "130, 0, 30");
$pdf->SetStyle("t1", "arial", "", 11, "254, 252, 222");
$pdf->SetStyle("t1", "arial", "", 11, "0, 151, 200");
$pdf->SetStyle("t2", "arial", "", 11, "0, 151, 200");
$pdf->SetStyle("t3", "times", "B", 14, "203, 0, 48");
$pdf->SetStyle("t4", "arial", "BI", 11, "0, 151, 200");
$pdf->SetStyle("hh", "times", "B", 11, "255, 189, 12");
$pdf->SetStyle("font", "helvetica", "", 10, "0, 0, 255");
$pdf->SetStyle("style", "helvetica", "BI", 10, "0, 0, 220");
$pdf->SetStyle("size", "times", "BI", 13, "0, 0, 120");
$pdf->SetStyle("color", "times", "BI", 13, "0, 255, 255");
$ttxt[1] = "
TexTest Longer Text
Test Longer Text - $j"; $data[4]['TEXT'] = "Test text2 - $j"; $data[0]['T_SIZE'] = $fsize; $data[1]['T_SIZE'] = 13 - $fsize; $data[3]['T_SIZE'] = 14 - $fsize; $data[0]['T_COLOR'] = array($rr, 0, 0); $data[0]['BG_COLOR'] = array($rr, $rr, $rr); $data[3]['T_COLOR'] = array($rr, 240, 240); $data[3]['BG_COLOR'] = array($rr, 100, 135); $fsize++; if ($fsize > 11) $fsize = 5; if ($j>3 && $j<13){ $data[0]['TEXT'] = "Colspan Example$j"; $data[0]['COLSPAN'] = $colspan; $data[0]['BG_COLOR'] = array($rr, 0, 0); $data[0]['T_COLOR'] = array(255, 255, $rr); $colspan++; if ($colspan>5) $colspan = 1; } if ($j>15 && $j<25){ $data[2]['TEXT'] = "Colspan Example$j"; $data[2]['COLSPAN'] = $colspan; $data[2]['BG_COLOR'] = array($rr, 0, 0); $data[2]['T_COLOR'] = array(255, 255, $rr); $colspan++; if ($colspan>3) $colspan = 1; } if ($j>1){ $data[2]['BG_COLOR'] = array(255-$rr, $rr, $rr); $data[2]['T_COLOR'] = array(255, 255, $rr); } if ($j==0){ $data[0]['TEXT'] = "Top Right AlignAlign Top
Right Right Align "; $data[0]['T_ALIGN'] = "R"; $data[0]['V_ALIGN'] = "T"; $data[1]['TEXT'] = "Middle Center Align Bold Italic"; $data[1]['T_ALIGN'] = "C"; $data[1]['T_TYPE'] = "BI"; $data[1]['V_ALIGN'] = "M"; $data[2]['TEXT'] = "\n\n\n\n\nBottom Left Align"; $data[2]['T_ALIGN'] = "L"; $data[2]['V_ALIGN'] = "B"; $data[3]['TEXT'] = "Middle Justified Align Longer text"; $data[3]['T_ALIGN'] = "J"; $data[3]['V_ALIGN'] = "M"; $data[4]['TEXT'] = "TOP RIGHT Align"; $data[4]['T_ALIGN'] = "R"; $data[4]['V_ALIGN'] = "T"; } if ($j>0 and $j<4){ $data[0]['TEXT'] = ""; $data[1]['TEXT'] = ""; $data[2]['TEXT'] = ""; $data[3]['TEXT'] = ""; $data[4]['TEXT'] = ""; $data[$j-1]['TEXT'] = $ttxt[$j]; $data[$j-1]['COLSPAN'] = 4; $data[$j-1]['T_ALIGN'] = "J"; $data[$j-1]['LN_SIZE'] = 5; } if ($j== 17) { $data[1]['TEXT'] = "