Merge pull request #37189 from krantheman/fix-report-pdf-layout

This commit is contained in:
Suraj Shetty 2026-02-26 16:21:23 +05:30 committed by GitHub
commit d518bc7307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,6 +369,12 @@ def prepare_header_footer(soup: BeautifulSoup):
# {"header-html": "/tmp/frappe-pdf-random.html"}
options[html_id] = fname
if html_id == "header-html":
options["margin-top"] = "25mm"
elif html_id == "footer-html":
options["margin-bottom"] = "25mm"
else:
if html_id == "header-html":
options["margin-top"] = "15mm"