Oprava bugu pri generovani stvrzenek
This commit is contained in:
		
							parent
							
								
									a5a4767efe
								
							
						
					
					
						commit
						7a4ea302a4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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') | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue