javascript - on click of button convert html page to image and download using JS ,Jquery -


i have created invoice based html page has button. onclick of button, html page should downloaded image. using javascript or jquery.

i don't expect best answer, seemed interesting enough post.

write app (may phantomjs) opens desired html document, sizes window properly, , takes screen shot. then, remove borders of image.

(or)

html2canvas exists render html onto (which can use image). (this may of after converting canvas - how save canvas png image?)


Comments