javascript - html2canvas not working for pseudo element -


i working on saving image of div. div has pseudo element , come know html2canvas not support pseudo element.

how solve ? there other library save div image ?

i using below link create tree structure :
https://codepen.io/p233/pen/kzbsi
, want save image.

for purpose using html2canvas

$(document).ready(function() {   html2canvas($("#home1"), {     onrendered: function(canvas) {       var image = new image();       image.src = divbytearray;       document.getelementbyid('image').appendchild(image);        //window.open(divbytearray);                 /* $("#test").attr('href', canvas.todataurl("image/png"));                     $("#test").attr('download', 'checkfile.png');                     $("#test")[0].click(); */     }   }); }); 

please don't put comment on function bracket. not putting whole function.
want know if there library save div image?

you can use html2canvas.js , canvas2image convert div canvas , convert image.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -