Bump PDF.js from 3.11.174 to 4.3.118

This commit is contained in:
Ludy87
2024-05-26 23:29:28 +02:00
parent eb5aeb4595
commit ddb2528ecf
315 changed files with 109046 additions and 100685 deletions

View File

@@ -44,7 +44,7 @@
if (file) {
originalFileName = file.name.replace(/\.[^/.]+$/, "");
const pdfData = await file.arrayBuffer();
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdfjs/pdf.worker.js'
pdfjsLib.GlobalWorkerOptions.workerSrc = './pdfjs/pdf.worker.mjs'
const pdfDoc = await pdfjsLib.getDocument({ data: pdfData }).promise;
await DraggableUtils.renderPage(pdfDoc, 0);