take fonts path from path to template

This commit is contained in:
Torsten Ueberschar
2024-02-19 10:34:13 +01:00
parent b8bd3f288b
commit b669e065f5
2 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ def main():
print('Generating invoice...')
invoice_pdf = Path(invoice_data.Id).with_suffix('.pdf')
print(f'Invoice PDF: {invoice_pdf}')
html_generator.HtmlTemplate.convert_html_to_pdf(template, invoice_pdf)
generator.convert_html_to_pdf(template, invoice_pdf)
except Exception as e:
print(f'Error: {e}')
return