Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html2canvas not getting image if file field src is url

html2canvas(document.body,
{
   useCORS: true, //By passing this option in function Cross origin images will be rendered properly in the downloaded version of the PDF
   onrendered: function (canvas) {
     //your functions here
   }
});
Source by www.py4u.net #
 
PREVIOUS NEXT
Tagged: #image #file #field #src #url
ADD COMMENT
Topic
Name
2+2 =