besser fonts
This commit is contained in:
@@ -62,7 +62,9 @@ class HtmlTemplate:
|
||||
# convert HTML to PDF
|
||||
pisa_status = pisa.CreatePDF(
|
||||
source_html, # the HTML to convert
|
||||
dest=result_file) # file handle to recieve result
|
||||
path='test_data/templates/fonts',
|
||||
dest=result_file
|
||||
) # file handle to recieve result
|
||||
|
||||
# close output file
|
||||
result_file.close() # close output file
|
||||
|
||||
@@ -15,7 +15,7 @@ class DataObject:
|
||||
|
||||
|
||||
def parse_yaml_file(file_path):
|
||||
with open(file_path, 'r') as file:
|
||||
with open(file_path, 'r', encoding='utf-8') as file:
|
||||
return yaml.safe_load(file)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user