From 49e30cb6ae737d327400b6fcc818102a2a6ebf4d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 25 Sep 2022 00:59:01 +0200 Subject: [PATCH] Fix PDF generation https://github.com/Kozea/WeasyPrint/issues/1419#issuecomment-895247370 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 16a01f91..d7753fe6 100755 --- a/build.py +++ b/build.py @@ -719,7 +719,7 @@ if pdf: # Generating the actual PDF with weasyprint (https://weasyprint.org/) from weasyprint import HTML - from weasyprint.text.fonts import FontConfiguration + from weasyprint.fonts import FontConfiguration html_font_config = FontConfiguration() doc = HTML(string = pdfpage, base_url = global_site_dir)