Letterhead does not repeat on every page of the pdf.
class ‘visible-pdf’ does not work in custom print formats?
When tried without using the class ‘visible-pdf’, the footer does not appear at the bottom. Instead, it appears in the body(just after the content end).
Approaches tried: 1. basic
<div class="row">
<div class="col-xs-12">
{{ letter_head }}
</div>
</div>
<div id="footer-html" class="visible-pdf">
{% if not no_letterhead and footer %}
<div class="letter-head-footer">
{{ footer }}
</div>
{% endif %}
</div>
2. Using standard.html format
<div class="row">
<div {% if print_settings.repeat_header_footer %} id="header-html" class="hidden-pdf" {% endif %}>
{{ letter_head }}
</div>
</div>
{% if print_settings.repeat_header_footer %}
<div id="footer-html" class="visible-pdf">
{% if not no_letterhead and footer %}
<div class="letter-head-footer">
{{ footer }}
</div>
{% endif %}
</div>
{% endif %}
3. Using Frappe print setting explicitly
{% for page in layout %}
<div {% if (frappe.get_doc("Print Settings").repeat_header_footer) %} id="header-html" class="hidden-pdf" {% endif %} >
<div class="col-xs-12">
{{ letter_head }}
</div>
</div>
{% if (frappe.get_doc("Print Settings").repeat_header_footer) %}
<div id="footer-html">
{% if not no_letterhead and footer %}
<div class="letter-head-footer">
{{ footer }}
</div>
{% endif %}
</div>
{% endif %}
{% endfor %}
I tried this code in my custom print format. It is still not working.
Also, letterhead and footer are not repeating on every page of the pdf.
Which version you’re currently using?
Hi,
I use
ERPNext: v10.0.17 (master)
Frappe Framework: v10.0.16 (master)
Sorry but have you set “Repeat Header and Footer in PDF” in the Print Settings?
this custom print format page number has become a headache for everyone facing this issue.
we need the page number in the print , it only gives it in the pdf , not in the full page print
we need the solution for this.
@michelle Thanks Dear for the prompt response,
We are using ERPNext V13.40.1,
Custom Print format.
Not able to get the page number in the print(full page print, not pdf)