Sorry, I read that backwards. I do it the opposite of you. Anyway a google for "html to pdf python" turns up a lot of hits. Again, no reason to reinvent the wheel.