Skip to content

sim186/weasyprint_prototype

Repository files navigation

WeasyPrint + Flask PDF prototype (Docker)

This small prototype shows how to generate a PDF from an HTML template using WeasyPrint inside a Docker container.

How to run (macOS):

  1. Build image:
docker compose build
  1. Start container:
docker compose up
  1. Open http://localhost:5001/report to download the PDF.

Troubleshooting:

  • If WeasyPrint fails with missing libraries, ensure the Dockerfile installs the system packages for cairo/pango/gdk.
  • To change content, edit templates/report.html and refresh the page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published