Render a PDF from html using xhtml2pdf and mimerender in Flask
This post is from 2013, so some of it may be out of date.
I’m working on invoice/receipt generation for Close.io and wanted to create simple PDFs using nothing but HTML.
Using Flask, mimerender, and xhtml2pdf, here’s how: