7

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?

4

1 回答 1

3

您可以使用 pdf.js https://github.com/mozilla/pdf.js/来实现这一点

看看这篇文章http://www.codediesel.com/javascript/rendering-pdf-in-html5-canvas/

于 2013-07-05T12:52:58.453 回答