latex2pdf.pdf 279 Bytes
Newer Older
1
{{
LE GAC Renaud's avatar
LE GAC Renaud committed
2

3 4
    try:
        response.headers['Content-Type']='application/pdf'
5
        response.headers['Content-Disposition']='attachment;filename="latex2pdf.pdf"'
6
        response.write(data, escape=False)
LE GAC Renaud's avatar
LE GAC Renaud committed
7

8 9
    except:
        raise HTML(405, T('LaTeX to PDF conversion failed.'))
LE GAC Renaud's avatar
LE GAC Renaud committed
10

11
}}