CodeIgniter Forums
set heading for all pages using mpdf - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: set heading for all pages using mpdf (/showthread.php?tid=71340)



set heading for all pages using mpdf - kvanaraj - 08-02-2018

I want to set header for all pages using my mpdf class. but not in proper alignment
 <htmlpageheader name="myHTMLHeader">
 <table width="100%" style="border-bottom: 1px solid #000000; vertical-align: middle; font-family:
serif; font-size: 15pt; color: #000088;">

 
   <tr>
   <td><img style="vertical-align: top" src="assets/images/logo.png" width="80" />
   </td>
</tr>
                        
                           
<tr>
 <td width="80%" align="center">company name </td> 
</tr>
 
<tr> 
 <td width="100%"  align="center">Address1 </td> 
 </tr>

 <tr> 
 <td width="100%"  align="center">Address2 </td> 
 </tr>

</table>
</htmlpageheader>


<sethtmlpageheader name="myHTMLHeader" page="O" value="on" show-this-page="1" />


RE: set heading for all pages using mpdf - php_rocs - 08-02-2018

@kvanaraj,

So what is the issue? You could just set an include header and use it everytime you generate a PDF.