generating a PDF for printing from a canvas

working example of generating a PDF for printing from a canvas:

(made by someone called Blizzard on StackOverflow)
http://jsfiddle.net/p4s5k59s/173/

html2canvas
license: [MIT]
http://html2canvas.hertzen.com/

jsPdf
license: [MIT]
http://parall.ax/products/jspdf

I tried this on a complex Realtime application with lots of realtime charts, and this solution works quite well, as long as you are happy with scalar output.

Ideally if you are printing, vector output would scale better ...

original post:
http://stackoverflow.com/questions/26731947/html5-canvas-convert-canvas-to-pdf-with-jspdf-js


Comments