Note that there are some explanatory texts on larger screens.

plurals
  1. POHeader not coming in first page mpdf
    text
    copied!<blockquote> <p>Header not coming in first page but comming in all other pages in mpdf.</p> </blockquote> <p>here is my php code.</p> <pre><code>$mpdf = new mPDF('utf-8','A4','','' , 0 , 0 , 0 , 18 , 0 , 0); $mpdf-&gt;SetDisplayMode('fullpage'); $mpdf-&gt;list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list $htmlFilePath = $fileName; //$mpdf-&gt;SetHTMLHeaderByName('header'); $mpdf-&gt;WriteHTHeader not coming in first page mpdfML(file_get_contents($htmlFilePath)); </code></pre> <p>here is my html code part.</p> <pre><code>&lt;htmlpageheader name="header"&gt; &lt;td class="" colspan="2"&gt; &lt;div id="header"&gt; &lt;table cellpadding="0" cellspacing="0" border="0" align="center"&gt; &lt;tr&gt;&lt;td height="10"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2"&gt; &lt;table border="0" cellpadding="0" cellspacing="0" align="center" width="200mm"&gt; &lt;tr&gt;&lt;td align="center"&gt;&lt;img src="{ADMINURL}wc_bo/wc_images/wc_background/pdf_header.jpg" width="739" height="206" alt=""&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;!-- &lt;table align="center" cellpadding="0" cellspacing="0" border="0" style="width:180mm;"&gt; &lt;tr&gt; &lt;td colspan="2" &gt;&lt;img src="{ADMINURL}wc_bo/wc_images/wc_background/login_logo.jpg" width="242" height="" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; --&gt; &lt;/td&gt; &lt;/htmlpageheader&gt; &lt;sethtmlpageheader name="header" value="on" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload