Just take a look if a bridge with https://github.com/niklasvh/html2canvas is easy to do. I already used it : it's not perfect, but it make the job.