Updated Imports

This commit is contained in:
Felix Kaspar
2023-10-27 03:14:22 +02:00
parent dd14b3a773
commit 013a3f7e1b
3 changed files with 10 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import PDFLib from 'pdf-lib';
import PDFJS from "pdfjs-dist";
import jsQR from "jsqr";
delete global.crypto; // TODO: I hate to do this, but the new node version forces me to, if anyone finds a better solution, please tell me!
import * as pdfcpuWraopper from "./public/wasm/pdfcpu-wrapper-node.js";
@@ -58,5 +59,5 @@ export async function removeBlankPages(snapshot, whiteThreashold) {
}
export async function splitOn(snapshot, type, whiteThreashold) {
return dependantSplitOn(snapshot, type, whiteThreashold, PDFJS, OpenCV, PDFLib);
return dependantSplitOn(snapshot, type, whiteThreashold, PDFJS, OpenCV, PDFLib, jsQR);
}