Javascript 使用js将pdf页面转换为图像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14354326/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 16:29:15  来源:igfitidea点击:

converting pdf pages to images using js

javascriptpdfpdf-conversion

提问by

How to export a PDF document into a series of individual images(jpeg, png or bmp format) using javascript or jquery?

如何使用 javascript 或 jquery 将 PDF 文档导出为一系列单独的图像(jpeg、png 或 bmp 格式)?

采纳答案by GitaarLAB

I stand corrected, ppeterka is right. Look at this questionand this answerwhere you see a pdf being renderd to canvas, so from there-on you indeed have a image.

我纠正了,ppeterka 是对的。看看这个问题和这个答案,你会看到一个 pdf 被渲染到画布上,所以从那里你确实有一个图像。