撸了个轮子Cafe-PDF 王叨叨 2021-09-09 折腾不止 39字 4523次阅读 又撸了一个轮子,基于PDFJS封装的,支持目录跳转、缩放、上一页、下一页、跳页、滚动、懒加载、打印。开箱即用:https://www.npmjs.com/package/cafe-pdf
运行起来报:Uncaught TypeError: PdfjsWorker is not a constructor
在
vue.config.js
中配置 loader: