5 lines
94 B
Python
5 lines
94 B
Python
from weasyprint import HTML
|
|
|
|
def htmltopdf(html, file):
|
|
HTML(string=html).write_pdf(file)
|