Skip to content
Snippets Groups Projects
Verified Commit 378dd0c6 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make PDF output work.

parent f3dcab9e
No related branches found
No related tags found
No related merge requests found
...@@ -119,9 +119,8 @@ def persons(request, group=None): ...@@ -119,9 +119,8 @@ def persons(request, group=None):
pdf = build_pdf(latex_file, texinputs=texinputs) pdf = build_pdf(latex_file, texinputs=texinputs)
# Write HTTP response # Write HTTP response
res = HttpResponse(content_type='application/pdf') res = HttpResponse(pdf.data, content_type='application/pdf')
res['Content-Disposition'] = 'attachment; filename="%s_%s.pdf"' % (template, group.cn) res['Content-Disposition'] = 'attachment; filename="%s_%s.pdf"' % (template, group.cn)
res.write(pdf)
return res return res
elif format == 'tex': elif format == 'tex':
# Write HTTP response # Write HTTP response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment