A demo based on this question: http://stackoverflow.com/questions/24505457/convert-an-html-page-to-pdf-from-javascript