mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 01:12:30 +00:00
0c667b13ae
* CSV * PDF (requires Python dependency `weasyprint`) * ODS (requires Python dependency `pyexcel_ods3`) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
4 lines
No EOL
105 B
Python
4 lines
No EOL
105 B
Python
from weasyprint import HTML
|
|
|
|
def generate(html):
|
|
return HTML(string=html.decode('utf-8')).write_pdf() |