HTML5 print screen automatically

Asked

Viewed 6,004 times

12

Is it possible or is there a Html5/javascript/jquery library that allows me to take a print of the window or a div and save automatically without the user’s permission?

I’ve tried to window.print() but it asks the user’s permission

Obs: i want to save as image not send to printer

  • 1

    There is no perfect way to do this. Try this: http://experiments.hertzen.com/jsfeedback/

  • 1

    One solution to this (but only works in Chrome/Opera) is the API chrome.desktopCapture

  • @Cool Kazzkiq, another solution, would be very interesting if you post it as an answer and with someone made an example on Jsfiddle

1 answer

13


There is a project open source called html2canvas that converts the view of a DOM object into a canvas and with it you can retrieve it in the form of an image.

I advise read the documentation for better clarification, the project is very good, worth seeing. I think the primordial of what you want to do is in this library.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.