Robin Gareus 2022-09-25 00:59:01 +02:00
parent 5a203c123c
commit b5c0fdbd60
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

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)