Convert from HTML to PDF

A quick way to convert HTML documents to PDF

sudo apt install weasyprint
weasyprint [input HTML filename] [output PDF filename]

Easy!

To handle page margins, don't forget to add the following CSS:
@page {
margin: 1cm;
}