Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print your webpage screen and send email with printed image [duplicate]

Possible Duplicate:
Capture HTML Canvas as gif/jpg/png/pdf?

Is there a simple way to create JS onclick function which will print the current screen of the website, save it as the image (.jpg or something) and send it via email.

I would like to create this option for the user side so there is no need for user to use keyboard 'Prnt Scr', then open Paint and paste and 'save as' an image, then attach and send via email.

Thanks in advance!

like image 870
Annette Avatar asked Jun 09 '12 00:06

Annette


People also ask

How do I take a snapshot of my computer screen?

Most Android devices should be able to take screen grabs by holding down the power and volume down buttons, though holding the power and home buttons (if your device has a physical button) may also work. Several Android devices have a screenshot button in the pull-down shade.

What is the Print Screen key?

Sometimes abbreviated as Prscr, PRTSC, PrtScrn, Prt Scrn, PrntScrn, or Ps/SR, the Print Screen key is a keyboard key found on most computer keyboards. When pressed, the key either sends the current screen image to the computer clipboard or the printer depending on the operating system or running program.


1 Answers

There are a few solutions out there:

  • Converting a webpage to an image using wkhtmltox:

    generating a screenshot of a website using jquery

  • Make use of the HTMLCanvasElement object's toDataURL function:

    How to take screen shot of a div with JavaScript

  • The html2canvas script:

    Using HTML5/Canvas/Javascript to take screenshots

  • Using the PHP wkhtmltoimage:

    Taking screenshots of websites in PHP


ps: a simple Google search gives you all of this!

like image 170
Zuul Avatar answered Oct 12 '22 08:10

Zuul