4
헤더가 첫 페이지에 오지 않지만 mpdf의 다른 모든 페이지에 있습니다.헤더가 첫 페이지에 들어오지 않습니다. mpdf
여기 내 PHP 코드입니다.
$mpdf = new mPDF('utf-8','A4','','' , 0 , 0 , 0 , 18 , 0 , 0);
$mpdf->SetDisplayMode('fullpage');
$mpdf->list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list
$htmlFilePath = $fileName;
//$mpdf->SetHTMLHeaderByName('header');
$mpdf->WriteHTHeader not coming in first page mpdfML(file_get_contents($htmlFilePath));
여기 내 HTML 코드 부분입니다.
<htmlpageheader name="header">
<td class="" colspan="2">
<div id="header">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td height="10"></td></tr>
<tr>
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="200mm">
<tr><td align="center"><img src="{ADMINURL}wc_bo/wc_images/wc_background/pdf_header.jpg" width="739" height="206" alt=""></td></tr>
</table>
</td>
</tr>
</table>
</div>
<!-- <table align="center" cellpadding="0" cellspacing="0" border="0" style="width:180mm;">
<tr>
<td colspan="2" ><img src="{ADMINURL}wc_bo/wc_images/wc_background/login_logo.jpg" width="242" height="" alt=""></td>
</tr>
</table> -->
</td>
</htmlpageheader>
<sethtmlpageheader name="header" value="on" />
감사합니다. 잘 작동합니다. 그냥 정보를 위해 바닥 글과 같은 것을 원한다면 다음을 사용할 수 있습니다 : –