https://github.com/mozilla/pdf.js
版本:2.9
装置
npm i pdfjs-dist
引入
import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf.js'
pdfjsLib.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')
https://github.com/mozilla/pdf.js
版本:2.9
装置
npm i pdfjs-dist
引入
import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf.js'
pdfjsLib.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')