Merge pull request #37709 from frappe/revert-37189-fix-report-pdf-layout

Revert "fix(pdf): removal of header and footer margins"
This commit is contained in:
Ejaaz Khan 2026-03-02 19:39:25 +05:30 committed by GitHub
commit bf7d3f95da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,12 +369,6 @@ 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"