$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); // set auto page breaks $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); // set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) { require_once dirname(__FILE__) . '/lang/eng.php'; $pdf->setLanguageArray($l); } $pdf->setPractice('Practice One', 'Location, State', '*****@*****.**', '+919985452312'); // --------------------------------------------------------- // set font $pdf->SetFont('times', '', 12); // add a page $pdf->AddPage(); ob_start(); ?> <style> table{ width: 100%; border-bottom:1px solid #aaa; border-right:1px solid #aaa; font-size: 13px; } table td,table th{ border-top:1px solid #aaa; border-left:1px solid #aaa; padding: 5px;