Hi, friend. I put this code in my sales invoice print format to make it show the footer but this only showed in preview, when I generated the pdf the footer didn’t show up.
<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>```
I'm using wkhtmltopdf 0.12.6.
Thanks a lot.
The problem persists, it looks fine in the preview and is lost in the pdf. Thanks for trying to help me, but if you think of any other solution it will be appreciated.
The PDF includes other scanned documents , so we can’t use the Word footer for this. If we replace page in the PDF, which isn’t uncommon, we have to update the PDF footer. For most users, this wipes out the Word header and footer in the PDF. If this reply is not helpful for kindly tell me here. I am going to bookmark this thread https://discuss.frappe.io/t/footer-dont-show-in-pdf/86995-gosloto to get more updates from here.
As additional information I am using macros and I have tested the tags with both static html code and jinja code and it is always the same result, it is shown correctly in the preview and when generating the pdf (from Mozilla and Chrome) it disappears.