create pdf

This commit is contained in:
2026-01-25 22:28:17 -07:00
parent cca6e351ca
commit 2240310818
2 changed files with 17 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
from weasyprint import HTML
def htmltopdf(html, file):
HTML(string=html).write_pdf(file)