Ankit Doshi
Ankit Doshi

Reputation: 1174

html2pdf add content in footer on each page

I have 5-10 table in pdf in which I am showing all the records of that table and each have approx 1000-2000 records. I have try to use below code to make footer on each page but instead of that its showing after completion of table. My template looks like below

   <page backtop="0" backbottom="30mm" footer="page" style="font-size: 9pt">
    <table>
        <Records>
    </table>
    <page_footer>
            <table class="page_footer" style="width: 100%;">
                <tr>
                    <td style="width: 80%; text-align:center">
                        <p style='font-size: 6pt;color:red;'>
                           ...Content...
                        </p>
                    </td>
                </tr>
            </table>
    </page_footer>

Upvotes: 5

Views: 9329

Answers (1)

Furqan Aziz
Furqan Aziz

Reputation: 1104

You can add custom header and footer by using mixture of tcPDF and wkhtml2pdf. Here is an example html2pdf/tcpdf/example . Here is another example html2fpdf/discussion/thread

Upvotes: 2

Related Questions