Step 1 . Download the file from Here
Step 2. Upload the file into Static Application Files
Step 3. Copy-Pest the source into Page>> JavaScript>>File UTLs
Step 4. Copy-Pest the JavaScript Into Page>> Function and Global Variable Declaration
function screenshot(){
html2canvas(document.body).then(function(canvas) {
var a = document.createElement('a');
a.href = canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream");
a.download = 'image.jpg';
a.click();
}); }
Step 5. Create a button and call dynamic action with click event and JavaScript Action and
call the function : screenshot();
No comments:
Post a Comment