Reputation: 579
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?
Upvotes: 8
Views: 35757
Reputation: 1891
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/
Upvotes: 3