I\'m trying to generate a pdf from template using this snippet:
def write_pdf(template_src, context_dict):
template = get_template(template_src)
context
I faced the same problem with cyrillic characters.
The solution contained two steps: 1. Point out the font file in your HTML file
2. Give "pisa" root path (so that it find font file by relative path) in my case it was something like this
pdf = pisa.pisaDocument(html, result, path=PATH_TO_DJANGO_PROJECT)
because fonts were placed at PATH_TO_DJANGO_PROJECT/files/arial.ttf