如何加载PDF文件上的帆布作为image.src? [英] How to load Pdf file on Canvas as a image.src?
本文介绍了如何加载PDF文件上的帆布作为image.src?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能加载图像在画布上,但现在我要替换PDF文件中的图像。 如何在画布加载PDF文件作为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?
推荐答案
您可以用pdf.js的 https://github.com/mozilla/pdf.js/
You can achieve this with pdf.js https://github.com/mozilla/pdf.js/
看看这篇文章的http://万维网。codediesel.com / JavaScript的/渲染PDF的功能于HTML5画布/
这篇关于如何加载PDF文件上的帆布作为image.src?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文