iutiut
This commit is contained in:
parent
866ad1b9bf
commit
074c918f1c
@ -424,6 +424,9 @@ def pdfGen(request):
|
|||||||
direct = tempdir
|
direct = tempdir
|
||||||
with open(os.path.join(direct, 'tmp.tex'), 'x', encoding='utf-8') as f:
|
with open(os.path.join(direct, 'tmp.tex'), 'x', encoding='utf-8') as f:
|
||||||
f.write(latex)
|
f.write(latex)
|
||||||
|
|
||||||
|
with open(os.path.join(direct, 'tmp.tex'), 'r', encoding='utf-8') as f:
|
||||||
|
print('FILE', f.read())
|
||||||
command = f'xelatex -interaction=batchmode tmp.tex'
|
command = f'xelatex -interaction=batchmode tmp.tex'
|
||||||
try:
|
try:
|
||||||
subprocess.run(command, shell=True,
|
subprocess.run(command, shell=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user