No Print Header and Footer in PDF since update

Since the latest update the print header and footer are not showing in the PDF anymore.
In preview it is visible but not in pdf. Also there is no error message.

ERPNext: v13.36.3 (version-13)

Frappe Framework: v13.37.0 (version-13)

Hopefully someone has a idea?
Before the update there was no problem. Maybe a change in print format.

This is my footer code for the custom print format at the moment, working before the update:

<!-- FOOTER -->
{% 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 %}
 <p class="text-center small page-number visible-pdf">
{{ _("Page {0} of {1}").format('<span class="page"></span>', '<span class="topage"></span>') }}
</p>
</div>
{% endif %}

Hi, either you need to adjust host_name in site_config.json.
OR
Upgrade your wkhtmltopdf version. Try this solution: [Guide] How to install ERPNext v14 on Linux Ubuntu (step-by-step instructions) - #26 by DrSchnagels

sudo apt update -y

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb

sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb

sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb