change to Pdf.js-Legacy Version 4.3.136 (#1444)
* add: PDF.js-Legacy * change path
This commit is contained in:
@@ -138,7 +138,7 @@ class PdfContainer {
|
||||
}
|
||||
|
||||
async toRenderer(objectUrl) {
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "./pdfjs/pdf.worker.mjs";
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "./pdfjs-legacy/pdf.worker.mjs";
|
||||
const pdf = await pdfjsLib.getDocument(objectUrl).promise;
|
||||
return {
|
||||
document: pdf,
|
||||
|
||||
Reference in New Issue
Block a user