mobilizon/priv/python/pdf.py
Thomas Citharel 0c667b13ae
Export participants to different formats
* CSV
* PDF (requires Python dependency `weasyprint`)
* ODS (requires Python dependency `pyexcel_ods3`)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-05 10:52:55 +02:00

4 lines
105 B
Python

from weasyprint import HTML
def generate(html):
return HTML(string=html.decode('utf-8')).write_pdf()