weasyprintEasy Playground

HTML/CSS to PDF conversion engine

Getting started with weasyprintRun locally
Install
pip install weasyprint
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: weasyprint)

weasyprint is a third-party package. HTML/CSS to PDF conversion engine. Install with: pip install weasyprint

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?