1

How can I print a html5 canvas element that has some content drawn on it using javascript? My print preview shows a blank box instead of the contents in the canvas element?

Ramya
  • 289
  • 6
  • 17
  • Possible duplicate of [Capture HTML Canvas as gif/jpg/png/pdf?](https://stackoverflow.com/questions/923885/capture-html-canvas-as-gif-jpg-png-pdf) – Mohammad Usman Dec 18 '17 at 13:01

1 Answers1

0

You will have to save the contents of the canvas in an image tag, you will be able to print the image.

Shamaila Tahir
  • 988
  • 2
  • 8
  • 17