Merge pull request #37189 from krantheman/fix-report-pdf-layout
This commit is contained in:
commit
d518bc7307
1 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue