|
|
@@ -155,7 +155,7 @@ def read_options_from_html(html): |
|
|
|
toggle_visible_pdf(soup) |
|
|
|
|
|
|
|
# use regex instead of soup-parser |
|
|
|
for attr in ("margin-top", "margin-bottom", "margin-left", "margin-right", "page-size", "header-spacing", "orientation"): |
|
|
|
for attr in ("margin-top", "margin-bottom", "margin-left", "margin-right", "page-size", "header-spacing", "orientation", "page-width", "page-height"): |
|
|
|
try: |
|
|
|
pattern = re.compile(r"(\.print-format)([\S|\s][^}]*?)(" + str(attr) + r":)(.+)(mm;)") |
|
|
|
match = pattern.findall(html) |
|
|
|