Robin Gareus 2022-09-25 00:59:01 +02:00 committed by Paul Davis
parent 53168d9920
commit 49e30cb6ae

View File

@ -719,7 +719,7 @@ if pdf:
# Generating the actual PDF with weasyprint (https://weasyprint.org/) # Generating the actual PDF with weasyprint (https://weasyprint.org/)
from weasyprint import HTML from weasyprint import HTML
from weasyprint.text.fonts import FontConfiguration from weasyprint.fonts import FontConfiguration
html_font_config = FontConfiguration() html_font_config = FontConfiguration()
doc = HTML(string = pdfpage, base_url = global_site_dir) doc = HTML(string = pdfpage, base_url = global_site_dir)