weasyprint — Easy Playground
Convert HTML/CSS to PDF documents
Getting started with weasyprintRun locally
Install
pip install weasyprintPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: weasyprint)
weasyprint is a third-party package. Convert HTML/CSS to PDF documents. 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?