+ 2

Output table yo and image file. Html Js

Hello. What is the best way to export a table in html to an image file using Javascript? Thanks in advance.

30th May 2017, 2:44 PM
Shahar Levy
Shahar Levy - avatar
3 odpowiedzi
+ 6
seems that html2canvas can do something like this http://html2canvas.hertzen.com seems it can create an image from any element in the page (or the entire page) and the render it on a canvas once the image is taken into the canvas you simply need to save it this might help (last lines inside the script tag): http://www.html5canvastutorials.com/advanced/html5-canvas-save-drawing-as-an-image/ also check here: https://stackoverflow.com/questions/31656689/how-to-save-img-to-users-local-computer-using-html2canvas Canvas2Image might be a good solution together with html2canvas: https://stackoverflow.com/questions/31652698/how-to-save-html2canvas-image-to-my-project-images-folder also: https://stackoverflow.com/questions/37331494/save-html-as-image-using-html2canvas
30th May 2017, 3:15 PM
Burey
Burey - avatar
30th May 2017, 4:01 PM
Calviղ
Calviղ - avatar
0
As always, thank you very much Burey!
30th May 2017, 3:56 PM
Shahar Levy
Shahar Levy - avatar