From 7a4ea302a4c44299c8e5f8c0347c1923e3064848 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Tue, 8 Nov 2016 08:46:53 +0100 Subject: [PATCH] Oprava bugu pri generovani stvrzenek --- seminar/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index fbf1a266..141e9492 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -555,7 +555,8 @@ def soustredeniStvrzenkyExportView(request,soustredeni,first_num): texfile.write(tex.decode("utf-8").encode("utf-8")) shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/stvrzenka.sty'),tempdir) shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/stvrzenky.tex'),tempdir) - subprocess.call(["pdfcslatex","stvrzenky.tex"],cwd = tempdir) + subprocess.call(["cslatex","stvrzenky.tex"],cwd = tempdir) + subprocess.call(["dvipdf","stvrzenky.dvi"],cwd = tempdir) with open(tempdir+"/stvrzenky.pdf","rb") as pdffile: response = HttpResponse(pdffile.read(),content_type='application/pdf')