You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
160 B
Python
5 lines
160 B
Python
3 years ago
|
from weasyprint import HTML
|
||
|
|
||
|
# Let weasyprint deal with reading the files and give the filenames
|
||
|
HTML(filename='hello-world.html').write_pdf('hello-world.pdf')
|