Fix PDF generation
https://github.com/Kozea/WeasyPrint/issues/1419#issuecomment-895247370
This commit is contained in:
parent
53168d9920
commit
49e30cb6ae
2
build.py
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user