fmt.Fprint
fmt.Fprint

Reputation: 579

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?

Upvotes: 8

Views: 35757

Answers (1)

mguimard
mguimard

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

Related Questions