ソースを参照

[Fix] Letter head not displaying proper in the pdf (#4251)

version-14
rohitwaghchaure 7年前
committed by Nabin Hait
コミット
192fae169c
1個のファイルの変更6行の追加3行の削除
  1. +6
    -3
      frappe/utils/pdf.py

+ 6
- 3
frappe/utils/pdf.py ファイルの表示

@@ -64,9 +64,7 @@ def prepare_options(html, options):


# defaults # defaults
'margin-right': '15mm', 'margin-right': '15mm',
'margin-left': '15mm',
'margin-top': '15mm',
'margin-bottom': '15mm',
'margin-left': '15mm'
}) })


html, html_options = read_options_from_html(html) html, html_options = read_options_from_html(html)
@@ -135,6 +133,11 @@ def prepare_header_footer(soup):


# {"header-html": "/tmp/frappe-pdf-random.html"} # {"header-html": "/tmp/frappe-pdf-random.html"}
options[html_id] = fname options[html_id] = fname
else:
if html_id == "header-html":
options["margin-top"] = "15mm"
elif html_id == "footer-html":
options["margin-bottom"] = "15mm"


return options return options




読み込み中…
キャンセル
保存