Skip to content
Proyectos

Acerca de

convert pdf to img,使用JS将PDF转换为图片,支持整图下载和多图压缩包下载,可直接在线查看demo。如有疑问,可通过个人主页邮箱联系。

Productividad y automatización

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

:diamond_shape_with_a_dot_inside:pdf2img

使用JS将PDF文档转换为图片,并支持下载图片(.zip格式全部下载)

  • 在线Demo(https://xxlllq.github.io/pdf2img) ,页面样式模板来源

    PDF To Image
  • 操作说明

    • 操作步骤(选择文件-->文档上传完成-->导出图片)
    • 文档大小建议不超过10M,因为文件越大处理过程越慢,可通过修改index.html中的判断条件控制文件大小限制。#2
      if (mb > 10) {
          alert("文件大小不能>10M");
          return;
      }
      
    • 可通过修改index.html中openPage函数的中的scale大小控制转换后图片的清晰度,数值越大,清晰度越高。#6
      var scale = 2;
      
    • 如果转换图片未显示电子签章,将项目引入的pdf.worker.js请通过关键字搜索后,注释下面代码。#3
      if (data.fieldType === 'Sig') {
          //_this2.setFlags(_util.AnnotationFlag.HIDDEN);
      }
      
    • 如果转换后图片部分文字显示不完整,请查看解决方案:#1
    • 项目中使用了pdf.js、FileSaver.js
  • 浏览器兼容

Chrome Firefox Safari IE
latest latest latest 10+
  • PDF JS版本2.8.335浏览器支持-20210719,由于pdfjs版本2.8.335中js引入了可选链操作符【?.,??】等,请访问参考下图查看自己的浏览器是否支持。
    PDF To Image

Explorar proyectos relacionados

Cargando…