Render a PDF from html using xhtml2pdf and mimerender in Flask

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:

Follow @philfreo on Twitter

Want to know when I write another post?
(only about once per month)

1 Comment

  1. endrit said,

    January 16, 2015 @ 9:28 am

    how can I generate and render pdf in a pluggable class view ??
    thanks in advance

RSS feed for comments on this post