Skip to content

Commit c57e272

Browse files
authored
add new headless to printing
add new headless to raffle & voucher printing
2 parents a1fc7e2 + 8f783cc commit c57e272

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contactform/label_raffle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def print_raffle(name_data, voucher_code, config, printer_config):
5151
"--hide-scrollbars",
5252
],
5353
)
54+
hti.browser.use_new_headless = True # https://github.com/vgalin/html2image/issues/174#issuecomment-2625720244
5455
hti.screenshot(
5556
html_str=label_html,
5657
css_str=label_css,

contactform/label_voucher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def print_voucher(
8484
"--hide-scrollbars",
8585
],
8686
)
87+
hti.browser.use_new_headless = True # https://github.com/vgalin/html2image/issues/174#issuecomment-2625720244
8788
hti.load_file(config.APPUIO_LOGO_PATH)
8889
hti.load_file(qr_code_filename)
8990
hti.browser.print_command = True if config.LOG_LEVEL == "DEBUG" else False

0 commit comments

Comments
 (0)