本文整理汇总了PHP中MYPDF::setHeaderData方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::setHeaderData方法的具体用法?PHP MYPDF::setHeaderData怎么用?PHP MYPDF::setHeaderData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::setHeaderData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</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);
示例2: pathinfo
$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)
示例3: array
<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)