Frappe print non-cstom print format

I am not able to print footer on all pages in frappe print in non-custom print format

PDF export should add the header and footer on every page.

Printing is a little hack-y because the browser doesn’t know when does a page actually end to throw in a footer (since data loads dynamically)

So you can use print designer (app) to design your print formats and it does the hard work for you.

Otherwise if you prefer coding custom print formats you might want to structure your format like this then use css to make thead and tfoot repeat on every page


<table>
    <thead> 
        <tr> 
            <th style="height: 1cm">
                Put header here 
            </th>
        </tr>
    </thead>

    <tbody>
        <tr>
            <td>

                Put page content here

            </td>
        </tr>
    </tbody>

    <tfoot>
        <tr>
            <td style="height: 1cm">

                Put footer here

            </td>
        </tr>
    </tfoot>
</table>