Print format repeat letter head

Greeting ,

I have this case " I want to add a letter head in my format in every page it should be show " I use many code but still show only in the first page :

page 2 :

Hi,

Print headings can be configured using this guide:

[https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/print/print-headings](https:
//docs.erpnext.com/docs/v13/user/manual/en/setting-up/print/print-headings)

Letter head :

https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/print/letter-head

it may help to say what Doctype the print format is associated with and what you have tried so far.

Add One Letter Head based on HTML.

<div class="col-xs-4 text-left" style="">
<img alt="Logo" height="75px" src="/files/mylogo1.png" width="45%">
</div>
HTML Code for Repeat Header
{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%}
{% if letter_head and not no_letterhead %}
<div class="letter-head">{{ letter_head }}</div>
{% endif %}
{%- if doc.meta.is_submittable and doc.docstatus==2-%}
<div class="alert alert-danger text-center">
    <h4 style="margin: 0px;">{{ _("CANCELLED") }}</h4></div>
{%- endif -%}
{% if max_pages > 1 %}
<p class="text-right">{{ _("Page #{0} of {1}").format(page_num, max_pages) }}</p>
{% endif %}
{%- endmacro -%}
{{ add_header(0,1,doc,letter_head, no_letterhead) }}
<div class="row">
<div class="col-xs-12 text-center" ><h3><label>Quotation					
</label></h3></div>
</div>
       <br>
        <div class="row">
        <div class="col-xs-2 text-right"><label>Quotation No.:</label></div>
        <div class="col-xs-6">{{ doc.name }} &nbsp; {{ doc.get_formatted("transaction_date") or ''}} </div>
        <div class="col-xs-2 text-right"><label>Valid Till :</label></div>
        <div class="col-xs-2"> {{ doc.get_formatted("valid_till") or ''}}</div>
    </div>
    <div class="row">
        <div class="col-xs-2 text-right"><label>{{_("Customer")}} :</label></div>
        <div class="col-xs-6"><label>{{doc.customer_name}}</label></div>
    </div>
<div class="row">
        <div class="col-xs-2 text-right"><label>{{ _("Contact")}} : </label></div>
        <div class="col-xs-6"><label>{{ doc.contact_display }} </label> </div>
    </div>
       <br><br>
<table class="table table-condensed table-hover table-bordered">
    <tr>
      <th>Description</th>
        <th>Quantity</th>
        <th>Rate</th>
        <th>Amount</th>
        </tr>
    {%- for row in doc.items -%}
    <tr>
        <td style="width: 35%; text-align: left;">{{ row.item_name or ''}}</td>
        <td style="width: 20%; text-align: center;">{{ row.qty or '' }}</td>
        <td style="width: 20%; text-align: center;"> {{ row.get_formatted("rate", doc) }}</td>
        <td style="width: 10%; text-align: right;">                
            {{ row.get_formatted("amount", doc) }} </td>
    </tr>
    {%- endfor -%}
</tbody>
</table>
<div class="page-break"></div>
<br>
{{ add_header(0,1,doc,letter_head, no_letterhead) }}
<br>
<h5>Terms & Conditions</h5>
 <div><p>{{doc.terms or ''}}</p></div>
<div id="footer-html" class="visible-pdf">
    {% if not no_letterhead and footer %}
    <div class="letter-head-footer">
        {{ footer }}
    </div>
    {% endif %}
    <p class="text-center small page-number visible-pdf">
        {{ _("Page {0} of {1}").format('<span class="page"></span>', '<span class="topage"> </span>') }}
    </p>
</div>