Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load Pdf file on Canvas as a image.src?

I am able to load image on canvas but now I want to replace the Image with pdf file. How to load Pdf file on Canvas as a image.src?

like image 849
fmt.Fprint Avatar asked Jul 05 '13 12:07

fmt.Fprint


1 Answers

You can achieve this with pdf.js https://github.com/mozilla/pdf.js/

Take a look at this article http://www.codediesel.com/javascript/rendering-pdf-in-html5-canvas/

like image 181
mguimard Avatar answered Oct 03 '22 17:10

mguimard