• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set heading for all pages using mpdf

#1
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" />
Reply

#2
@kvanaraj,

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.