Expanding on the brilliant work of @fscz https://github.com/fscz/html2pdf - Expanding it to be more useful, will eventually make it a pull request.