Revert "fix(pdf): removal of header and footer margins"

This commit is contained in:
Ejaaz Khan 2026-03-02 19:29:36 +05:30 committed by GitHub
parent 662781ab73
commit c7ac52a71e
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"