<?php
// Include the main TCPDF library (search for installation path).
require_once ($_SERVER['DOCUMENT_ROOT'] . '/TCPDF-main/examples/tcpdf_include.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
//	$pdf->SetFont($fontname, '', 14, '', false);
// set document information
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->SetCreator(PDF_CREATOR);
// set header and footer fonts
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// add a page
$pdf->AddPage();
$html1 = '
	
	<table cellpadding="" cellspacing="0" border="0"  width="665" align="center" style="margin-left:50px">
	<br>
	<tr><td colspan = "6" align = "center" style = "font-size: 25px;font-weight:bold;color:#00477D">The Smart City Challenge Report </td></tr>
	<tr><td colspan = "6" align = "center" style = "font-size: 20px;font-weight:700;">Aparna</td></tr>
	<tr><td colspan = "6" align = "center" style = "font-size: 14px;">Date: 2020-02-03 9:39</td></tr>
	</table>
	';
	//$pdf->setFont($font_family='poppins',$font_variant='',$font_size=10);

	$html1 .= '<br><br><table cellpadding="" cellspacing="0"   width="665"  style="margin-left:50px;border-top: 5px dotted  #34e8d8;" >
		<tr><td colspan= "6" ></td></tr>
		<tr>
		<td colspan = "6">
		<table>
		<tr><td style = "font-size: 16px;color:#7E7F81;text-align: justify">Here is a detailed look at how you did on the Smart City Challenge. During the different milestones in this learning journey, you will have the opportunity to learn more about each of these attributes and further improve your performance on the same. </td></tr>
		</table>
		</td>
		</tr><br><br>
		</table>';	
		
        for( $i=0;$i<5;$i++){
			
		$html1 .= '<br><br><table cellpadding="" cellspacing="0"   width="665"  style="margin-left:50px;"  >
		<tr  style = "font-size: 25px;text-align:center;color:#00477D;margin:20px 0" align = "center"><th> Being a Trusted Leader (67.00%)</th></tr>
		<tr><td colspan = "5">		</td>		</tr>
		<tr><td colspan = "5">		</td>		</tr>
		<tr><td style = "font-size: 16px;color:#7E7F81;text-align: justify">Here is a detailed look at how you did on the Smart City Challenge. During the different milestones in this learning journey, you will have the opportunity to learn more about each of these attributes and further improve your performance on the same.Here is a detailed look at how you did on the Smart City Challenge. During the different milestones in this learning journey, you will have the opportunity to learn more about each of these attributes and further improve your performance on the same. </td></tr>
		<br><br>
		</table>';
		}

		$html1 .= '<table cellpadding="" cellspacing="0"   width="665"  style="margin-left:50px;" >
		<tr><td colspan= "6" ></td></tr>
		</table>
		<br><br><table cellpadding="" cellspacing="0"   width="665"  style="margin-left:50px;border-top: 5px dotted  #34e8d8;" >
		<tr><td colspan= "6"  style = "font-size: 18px;color:#7E7F81;text-align: center">End of Report</td></tr>
		</table>';			
$pdf->writeHTML($html1);
//-------------------------------------------------------------
//Close and output PDF document
$pdf->Output('Report.pdf', 'I');
//$pdf->Output("filename.pdf",'D');
//============================================================+
// END OF FILE
//============================================================+
