change to Pdf.js-Legacy Version 4.3.136 (#1444)

* add: PDF.js-Legacy

* change path
This commit is contained in:
Ludy
2024-06-12 21:33:25 +02:00
committed by GitHub
parent 76660eb791
commit 446bc68768
388 changed files with 148314 additions and 20 deletions

View File

@@ -64,7 +64,7 @@
let reader = new FileReader();
reader.onload = function(ev) {
let typedArray = new Uint8Array(reader.result);
pdfjsLib.GlobalWorkerOptions.workerSrc = './pdfjs/pdf.worker.mjs'
pdfjsLib.GlobalWorkerOptions.workerSrc = './pdfjs-legacy/pdf.worker.mjs'
pdfjsLib.getDocument(typedArray).promise.then(function(pdf) {
pdfDoc = pdf;
totalPages = pdf.numPages;