How to take a screenshot or make a image of current screen using php and javascript with jquery or make a pdf file of current scrren
For create a image of current screen using javascript add below script into your file <script type="text/javascript"> function printDiv() { jQuery('.year_box').remove(); // add your container id for capcture screen here i write "main_panel_body" for example html2canvas([document.getElementById('main_panel_body')], { onrendered: function(canvas) { var img = canvas.toDataURL(); jQuery('.overlay_box').show(); // calling ajax method for create image from binary data $.post("save.php", {data: img}, function (file) { jQuery('.overlay_box').hide(); window.open("download.php?business_idsv="+business_id+"&limit="+limit+"&path="+ file,'_blank');}); } }); jQuery('.year_box').show(); } </script> Here is my save.php file require_once("config.