M
Size: a a a
u
DB
АА
MI
u
u
MI
MI
MI
MI
MI
s
MI
АА
template_path = 'orders/address_letter.html'Ругается на это:
template = get_template(template_path)
result = StringIO()
html = template.render(context_data)
In [17]: pdf = pisa.CreatePDF(str(html), result, encoding='UTF-8', show_error_as_pdf=True)
Need a valid file name!
'<img src="/static/img/emskz.gif" width="300"/>'
Need a valid file name!
'<img src="/static/barcode.svg" width="200"/>'
Need a valid file name!
'<img src="/static/img/weight_bg.png" width="70"/>'