Změna obrázku lišáka na obálkách
This commit is contained in:
		
							parent
							
								
									f8ba2df414
								
							
						
					
					
						commit
						d3f045137f
					
				
					 4 changed files with 4 additions and 1606 deletions
				
			
		
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								seminar/static/seminar/lisak.pdf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								seminar/static/seminar/lisak.pdf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -86,7 +86,8 @@ | ||||||
| % Tohle makro vysází samotnou obálku | % Tohle makro vysází samotnou obálku | ||||||
| \def\obalka#1#2#3#4#5#6#7{ | \def\obalka#1#2#3#4#5#6#7{ | ||||||
| % Horní a pravý okraj je zároveň okraj stránky, resetujeme odsazení | % Horní a pravý okraj je zároveň okraj stránky, resetujeme odsazení | ||||||
| \includegraphics[height=2.55cm]{lisak.eps}\hskip 1 em\vbox{% | \includegraphics[height=2.55cm]{lisak.pdf} | ||||||
|  | \vbox{% | ||||||
| \adresaMaM} | \adresaMaM} | ||||||
| \vskip 7.3 cm % Od oka | \vskip 7.3 cm % Od oka | ||||||
| \hskip\toskip% | \hskip\toskip% | ||||||
|  |  | ||||||
|  | @ -625,9 +625,9 @@ def obalkyView(request,resitele): | ||||||
| 	tex = render(request,'seminar/archiv/obalky.tex', {'resitele': resitele}).content | 	tex = render(request,'seminar/archiv/obalky.tex', {'resitele': resitele}).content | ||||||
| 
 | 
 | ||||||
| 	tempdir = tempfile.mkdtemp() | 	tempdir = tempfile.mkdtemp() | ||||||
| 	with open(tempdir+"/obalky.tex","wb") as texfile: | 	with open(tempdir+"/obalky.tex","w") as texfile: | ||||||
| 		texfile.write(tex) | 		texfile.write(tex) | ||||||
| 	shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) | 	shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.pdf'),tempdir) | ||||||
| 	subprocess.call(["pdflatex","obalky.tex"],cwd = tempdir) | 	subprocess.call(["pdflatex","obalky.tex"],cwd = tempdir) | ||||||
| 
 | 
 | ||||||
| 	with open(tempdir+"/obalky.pdf","rb") as pdffile: | 	with open(tempdir+"/obalky.pdf","rb") as pdffile: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Tomáš Domes
						Tomáš Domes