Example #1
0
     </tr>
     <tr align="left">
       <td><b>PENGHANTAR</b></td>
       <td></td>
       <td><b>RUJUKAN TUAN</b></td>
       <td></td>
     </tr>
     <tr align="left">
       <td><b>PENGILANG</b></td>
       <td colspan="3"></td>
     </tr>
   </table>
 </div>
 <div class="col-md-12" style="border-top: 1px solid #000;"></div>';
         $pdf->resetHeaderTemplate();
         $pdf->setHeaderData($ln = '', $lw = 0, $ht = '', $header, $tc = array(0, 0, 0), $lc = array(0, 0, 0));
         $pdf->AddPage();
         $html .= '<div class="col-md-12">
 <table width="100%" border="1" cellpadding="2">
   <thead>
     <tr align="center">
       <th width="5%">BIL</th>
       <th width="10%">KOD</th>
       <th width="30%">UJIAN</th>
       <th width="30%">SPESIFIKASI</th>
       <th width="25%">KEPUTUSAN</th>
     </tr>
   </thead><tbody>';
         $count = 1;
         $query = "SELECT kltt_rt_kod,kltt_rt_desc,kltt_spec_desc,\n                      kltt_result_desc1,kltt_result_desc2,kltt_result_desc3,kltt_result_desc4\n                      FROM k_lab_task_test\n                      WHERE kltt_kp_id='" . $row['kp_id'] . "'";
         $result = selQuery($query);
         $ext_leftside_consultant_img = $arr_leftside_consultant_img['extension'];
         $arr_rightside_client_img = pathinfo($rightside_client_img);
         $ext_rightside_client_img = $arr_rightside_client_img['extension'];
         $this->Image($leftside_consultant_img, 10, 10, 15, '', $ext_leftside_consultant_img, '', 'T', false, 350, '', false, false, 0, false, false, false);
         $this->Image($rightside_client_img, 10, 10, 15, '', $ext_rightside_client_img, '', 'T', false, 350, 'R', false, false, 0, false, false, false);
     }
 }
 // create new PDF document
 $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 // Set document information //
 $pdf->SetCreator(PDF_CREATOR);
 $pdf->SetAuthor('S1 System');
 $pdf->SetTitle('Advanced Inspection');
 $pdf->SetSubject('Advanced Inspection');
 // set default header data
 $pdf->setHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, "Advanced Inspection", PDF_HEADER_STRING, array(0, 64, 255), array(0, 64, 128));
 $pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
 // set header and footer fonts
 $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
 $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
 // set default monospaced font
 $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
 // set margins
 $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)
Example #3
0
									<img src="' . $logo . '" width="235" height:"180"/>
								</td>
								<td width="60%" align="justify">
									<span color="#60226B"><b>' . $head1 . '</b></span>' . $head_descr . '	
									<br/><br/>
									<table>
										<tr>
											<td width="100px" color="#60226B"><b>' . $pdf_creator_name . ' </b></td>
											<td width="50px" color="#60226B"><b>' . $designation . ' </b></td>
											<td width="350px" color="#60226B"><b>' . $qualification . '</b></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>';
$pdf->setHeaderData($ln = '', $lw = 0, $ht = '', $hs = $hedader_data, $tc = array(0, 0, 0), $lc = array(0, 0, 0));
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->SetPrintFooter(false);
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$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)