Jump to content

vgaurav

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by vgaurav

  1. Hello, I am trying to create a footer for the invoice PDF file but the issue I am facing is that the content of the PDF invoice is overlapping with the content of the footer. I have already added the following to the invoicepdf.tpl file but it doen't seem to be making any difference. $pdf->setPrintFooter(true); $pdf->setFooterMargin(55); $pdf->SetAutoPageBreak(true,65); Can someone please advise what I may be doing wrong here? Thanks
  2. I am trying to create a static footer in the PDF invoices. In the previous versions I had this working by editing the tcpdf.php file and using the LANG variables in it and the LANG variables had the HTML code. I recently upgraded to version 7.1 and the tcpdf.php changes are not working in it. I found that the latest version has the option to create invoicepdfooter.tpl file which is then displayed as footer but I am unable to get the HTML tags or LANG variables to work. Here is an example of what I am trying to do in the invoicepdffooter.tpl: <?php $pdf->SetFont($pdfFont, '', 9); $html .= '<table width="100%"> <tr> <th width="25%"><b>1. Option 1</b></th> <th width="25%"><b>2. Option 2</b></th> <th width="25%"><b>3. Option 3</b></th> <th width="25%"><b>4. Option 4</b></th> </tr> <tr> </table>'; $pdf->writeHTML($html, true, false, false, false, ''); I contacted the support and all they did was to add the HTML code to the bottom of the invoicepdf.tpl and send it back to me. However, it is not static and I need static footer at the bottom of all pages of the PDF invoice I have been redirected by the support to post my query on the forum here:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated