@digipair/skill-web-pdf 0.43.2 → 0.43.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2048,7 +2048,7 @@ class InputPdfElement extends r$2 {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
async extractText(file) {
|
|
2050
2050
|
const pdfjs = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(PDFJS_URL);
|
|
2051
|
-
pdfjs.GlobalWorkerOptions.workerSrc = '/
|
|
2051
|
+
pdfjs.GlobalWorkerOptions.workerSrc = '/assets/pdf.worker.min.mjs';
|
|
2052
2052
|
const pdf = await pdfjs.getDocument(file).promise;
|
|
2053
2053
|
let text = '';
|
|
2054
2054
|
for(let i = 1; i <= pdf.numPages; i++){
|
package/index.esm.js
CHANGED
|
@@ -2026,7 +2026,7 @@ class InputPdfElement extends r$2 {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
async extractText(file) {
|
|
2028
2028
|
const pdfjs = await import(PDFJS_URL);
|
|
2029
|
-
pdfjs.GlobalWorkerOptions.workerSrc = '/
|
|
2029
|
+
pdfjs.GlobalWorkerOptions.workerSrc = '/assets/pdf.worker.min.mjs';
|
|
2030
2030
|
const pdf = await pdfjs.getDocument(file).promise;
|
|
2031
2031
|
let text = '';
|
|
2032
2032
|
for(let i = 1; i <= pdf.numPages; i++){
|